[nginx] SPDY: always check size of data to be saved into state b...

Maxim Dounin mdounin at mdounin.ru
Tue Mar 18 16:40:40 UTC 2014


details:   http://hg.nginx.org/nginx/rev/e7f7d30196e3
branches:  stable-1.4
changeset: 5611:e7f7d30196e3
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Tue Mar 18 17:00:19 2014 +0400
description:
SPDY: always check size of data to be saved into state buffer.

diffstat:

 src/http/ngx_http_spdy.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

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: "



More information about the nginx-devel mailing list