mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
bugfix: applied the patch for nginx security advisory (CVE-2016-4450) to the nginx 1.9.15 core.
This commit is contained in:
14
patches/patch.2016.write.txt
Normal file
14
patches/patch.2016.write.txt
Normal file
@ -0,0 +1,14 @@
|
||||
--- src/os/unix/ngx_files.c
|
||||
+++ src/os/unix/ngx_files.c
|
||||
@@ -356,6 +356,11 @@
|
||||
n = 0;
|
||||
|
||||
for ( /* void */ ; cl; cl = cl->next) {
|
||||
+
|
||||
+ if (ngx_buf_special(cl->buf)) {
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
size = cl->buf->last - cl->buf->pos;
|
||||
|
||||
if (prev == cl->buf->pos) {
|
Reference in New Issue
Block a user