mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 04:39:00 +08:00
SPDY: always check size of data to be saved into state buffer.
This commit is contained in:
parent
0b5f329784
commit
c6c702c329
@ -1872,7 +1872,7 @@ static u_char *
|
|||||||
ngx_http_spdy_state_save(ngx_http_spdy_connection_t *sc,
|
ngx_http_spdy_state_save(ngx_http_spdy_connection_t *sc,
|
||||||
u_char *pos, u_char *end, ngx_http_spdy_handler_pt handler)
|
u_char *pos, u_char *end, ngx_http_spdy_handler_pt handler)
|
||||||
{
|
{
|
||||||
#if (NGX_DEBUG)
|
#if 1
|
||||||
if (end - pos > NGX_SPDY_STATE_BUFFER_SIZE) {
|
if (end - pos > NGX_SPDY_STATE_BUFFER_SIZE) {
|
||||||
ngx_log_error(NGX_LOG_ALERT, sc->connection->log, 0,
|
ngx_log_error(NGX_LOG_ALERT, sc->connection->log, 0,
|
||||||
"spdy state buffer overflow: "
|
"spdy state buffer overflow: "
|
||||||
|
Loading…
Reference in New Issue
Block a user