# HG changeset patch # User Maxim Dounin # Date 1395147619 -14400 # Node ID e7f7d30196e36e6347728d5f1952331f6a3837d0 # Parent b246018860a27db31fb5bd4ab1ea201d85a7b6d1 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 @@ -1465,7 +1465,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: "