aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_conf_file.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2013-05-23 16:26:10 +0400
committerRuslan Ermilov <ru@nginx.com>2013-05-23 16:26:10 +0400
commit2c0ea0fcc854a1ba0c717fa78b03ac7faee12829 (patch)
tree70eb5fa7fc652eab2609062978f10ff37bdd4d91 /src/core/ngx_conf_file.c
parent3be6cc9b2f85724c37d5cf5e9f71bbded656b9cd (diff)
downloadnginx-2c0ea0fcc854a1ba0c717fa78b03ac7faee12829.tar.gz
nginx-2c0ea0fcc854a1ba0c717fa78b03ac7faee12829.zip
Memcached: stricten header validation.
An invalid memcached reply that started with '\n' could cause segmentation fault. An invalid memcached reply "VALUE / 0 2\r?ok\r\nEND\r\n" was considered as a valid response. In addition, if memcached reports that the key was not found, set u->headers_in.content_length_n to 0. This ensures that ngx_http_memcached_filter() will not be called while previous code relied on always intercepting 404. Initialization of ctx->rest was moved to where it belongs.
Diffstat (limited to 'src/core/ngx_conf_file.c')
0 files changed, 0 insertions, 0 deletions