# HG changeset patch # User Maxim Dounin # Date 1395147619 -14400 # Node ID 6c7f9fd5fd7ea861c8ce05c5ff76a1483fe549a8 # Parent 3a72b1805c52c84a5567dcfa4562f44722bede40 SPDY: always check size of data to be saved into state buffer. diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c --- a/src/http/ngx_http_spdy.c +++ b/src/http/ngx_http_spdy.c @@ -1872,7 +1872,7 @@ static u_char * ngx_http_spdy_state_save(ngx_http_spdy_connection_t *sc, 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) { ngx_log_error(NGX_LOG_ALERT, sc->connection->log, 0, "spdy state buffer overflow: "