diff options
Diffstat (limited to 'network/nginx/CVE-2016-4450.diff')
-rw-r--r-- | network/nginx/CVE-2016-4450.diff | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/nginx/CVE-2016-4450.diff b/network/nginx/CVE-2016-4450.diff new file mode 100644 index 0000000000..6f2c25b0c4 --- /dev/null +++ b/network/nginx/CVE-2016-4450.diff @@ -0,0 +1,15 @@ +--- src/os/unix/ngx_files.c ++++ src/os/unix/ngx_files.c +@@ -183,6 +183,12 @@ ngx_write_chain_to_file(ngx_file_t *file + /* create the iovec and coalesce the neighbouring bufs */ + + while (cl && vec.nelts < IOV_MAX) { ++ ++ if (ngx_buf_special(cl->buf)) { ++ cl = cl->next; ++ continue; ++ } ++ + if (prev == cl->buf->pos) { + iov->iov_len += cl->buf->last - cl->buf->pos; + |