comparison src/http/ngx_http_spdy.c @ 5695:231588611230

SPDY: added a debug point to the state buffer overflow protection.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 30 Apr 2014 20:34:20 +0400
parents 9a95eb9f448b
children 19a14a484707
comparison
equal deleted inserted replaced
5694:9a95eb9f448b 5695:231588611230
1942 1942
1943 if (size > NGX_SPDY_STATE_BUFFER_SIZE) { 1943 if (size > NGX_SPDY_STATE_BUFFER_SIZE) {
1944 ngx_log_error(NGX_LOG_ALERT, sc->connection->log, 0, 1944 ngx_log_error(NGX_LOG_ALERT, sc->connection->log, 0,
1945 "state buffer overflow: %uz bytes required", size); 1945 "state buffer overflow: %uz bytes required", size);
1946 1946
1947 ngx_debug_point();
1947 return ngx_http_spdy_state_internal_error(sc); 1948 return ngx_http_spdy_state_internal_error(sc);
1948 } 1949 }
1949 1950
1950 ngx_memcpy(sc->buffer, pos, NGX_SPDY_STATE_BUFFER_SIZE); 1951 ngx_memcpy(sc->buffer, pos, NGX_SPDY_STATE_BUFFER_SIZE);
1951 1952