]> git.kaiwu.me - nginx.git/commit
Request body: avoid linking rb->buf to r->header_in.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 14 Mar 2013 12:30:26 +0000 (12:30 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 14 Mar 2013 12:30:26 +0000 (12:30 +0000)
commit4641497e9c85f6e182c3f134da3f79f324c85e12
tree0c399f21918c5b6d26f4cf7d4bed82ebe3c23e02
parent545cfd1fd391041706fab96d9835c4c82eda31d7
Request body: avoid linking rb->buf to r->header_in.

Code to reuse of r->request_body->buf in upstream module assumes it's
dedicated buffer, hence after 1.3.9 (r4931) it might reuse r->header_in
if client_body_in_file_only was set, resulting in original request
corruption.  It is considered to be safer to always create a dedicated
buffer for rb->bufs to avoid such problems.
src/http/ngx_http_request_body.c