comparison src/http/modules/ngx_http_fastcgi_module.c @ 666:bf8b55a5ac89 NGINX_1_1_17

nginx 1.1.17 *) Security: content of previously freed memory might be sent to a client if backend returned specially crafted response. Thanks to Matthew Daley. *) Bugfix: in the embedded perl module if used from SSI. Thanks to Matthew Daley. *) Bugfix: in the ngx_http_uwsgi_module.
author Igor Sysoev <http://sysoev.ru>
date Thu, 15 Mar 2012 00:00:00 +0400
parents d0f7a625f27c
children f41d4b305d22
comparison
equal deleted inserted replaced
665:a8821023989f 666:bf8b55a5ac89
1499 1499
1500 h->value.data = h->key.data + h->key.len + 1; 1500 h->value.data = h->key.data + h->key.len + 1;
1501 h->lowcase_key = h->key.data + h->key.len + 1 1501 h->lowcase_key = h->key.data + h->key.len + 1
1502 + h->value.len + 1; 1502 + h->value.len + 1;
1503 1503
1504 ngx_cpystrn(h->key.data, r->header_name_start, 1504 ngx_memcpy(h->key.data, r->header_name_start, h->key.len);
1505 h->key.len + 1); 1505 h->key.data[h->key.len] = '\0';
1506 ngx_cpystrn(h->value.data, r->header_start, 1506 ngx_memcpy(h->value.data, r->header_start, h->value.len);
1507 h->value.len + 1); 1507 h->value.data[h->value.len] = '\0';
1508 } 1508 }
1509 1509
1510 h->hash = r->header_hash; 1510 h->hash = r->header_hash;
1511 1511
1512 if (h->key.len == r->lowcase_index) { 1512 if (h->key.len == r->lowcase_index) {
2430 if (conf->params_source == NULL) { 2430 if (conf->params_source == NULL) {
2431 conf->params_source = prev->params_source; 2431 conf->params_source = prev->params_source;
2432 2432
2433 if (prev->headers_hash.buckets 2433 if (prev->headers_hash.buckets
2434 #if (NGX_HTTP_CACHE) 2434 #if (NGX_HTTP_CACHE)
2435 && ((conf->upstream.cache == NULL) == (prev->upstream.cache == NULL)) 2435 && ((conf->upstream.cache == NULL)
2436 == (prev->upstream.cache == NULL))
2436 #endif 2437 #endif
2437 ) 2438 )
2438 { 2439 {
2439 conf->flushes = prev->flushes; 2440 conf->flushes = prev->flushes;
2440 conf->params_len = prev->params_len; 2441 conf->params_len = prev->params_len;