[nginx] svn commit: r4939 - trunk/src/os/unix

mdounin at mdounin.ru mdounin at mdounin.ru
Mon Nov 26 21:19:57 UTC 2012


Author: mdounin
Date: 2012-11-26 21:19:57 +0000 (Mon, 26 Nov 2012)
New Revision: 4939
URL: http://trac.nginx.org/nginx/changeset/4939/nginx

Log:
Core: fixed ngx_write_chain_to_file() with IOV_MAX reached.

Catched by dav_chunked.t on Solaris.  In released versions this might
potentially result in corruption of complex protocol responses if they
were written to disk and there were more distinct buffers than IOV_MAX
in a single write.


Modified:
   trunk/src/os/unix/ngx_files.c

Modified: trunk/src/os/unix/ngx_files.c
===================================================================
--- trunk/src/os/unix/ngx_files.c	2012-11-26 18:01:49 UTC (rev 4938)
+++ trunk/src/os/unix/ngx_files.c	2012-11-26 21:19:57 UTC (rev 4939)
@@ -246,6 +246,7 @@
 
         file->sys_offset += n;
         file->offset += n;
+        offset += n;
         total += n;
 
     } while (cl);



More information about the nginx-devel mailing list