Mercurial > hg > nginx-vendor-1-0
comparison src/http/modules/ngx_http_fastcgi_module.c @ 648:fa9b9e42035e NGINX_1_0_14
nginx 1.0.14
*) Security: content of previously freed memory might be sent to a
client if backend returned specially crafted response.
Thanks to Matthew Daley.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 15 Mar 2012 00:00:00 +0400 |
parents | ad25218fd14b |
children |
comparison
equal
deleted
inserted
replaced
647:db509e2f8037 | 648:fa9b9e42035e |
---|---|
1444 | 1444 |
1445 h->value.data = h->key.data + h->key.len + 1; | 1445 h->value.data = h->key.data + h->key.len + 1; |
1446 h->lowcase_key = h->key.data + h->key.len + 1 | 1446 h->lowcase_key = h->key.data + h->key.len + 1 |
1447 + h->value.len + 1; | 1447 + h->value.len + 1; |
1448 | 1448 |
1449 ngx_cpystrn(h->key.data, r->header_name_start, | 1449 ngx_memcpy(h->key.data, r->header_name_start, h->key.len); |
1450 h->key.len + 1); | 1450 h->key.data[h->key.len] = '\0'; |
1451 ngx_cpystrn(h->value.data, r->header_start, | 1451 ngx_memcpy(h->value.data, r->header_start, h->value.len); |
1452 h->value.len + 1); | 1452 h->value.data[h->value.len] = '\0'; |
1453 } | 1453 } |
1454 | 1454 |
1455 h->hash = r->header_hash; | 1455 h->hash = r->header_hash; |
1456 | 1456 |
1457 if (h->key.len == r->lowcase_index) { | 1457 if (h->key.len == r->lowcase_index) { |