libuv/src
Dave a564ef09dc fs: don't nullify req->bufs on EINTR
uv__fs_buf_iter currently sets req->bufs to NULL after it is done, but
if the operation fails with EINTR then it will be retried, at which
point it expects the bufs to not be NULL, causing a seg fault as in
https://github.com/nodejs/node/issues/4291.

uv__fs_buf_iter should not set req->bufs to NULL if the operation
fails with EINTR.

Also, when it sets req->bufs to NULL, it should set req->nbufs to 0 as
well, so we don't have the messy situation of a positive nbufs with no
actual bufs.

PR-URL: https://github.com/libuv/libuv/pull/661
Reviewed-By: Fedor Indutny <fedor@indutny.com>
2016-01-04 14:07:50 -05:00
..
unix fs: don't nullify req->bufs on EINTR 2016-01-04 14:07:50 -05:00
win win: wait for full timeout duration 2015-12-16 12:08:46 +01:00
fs-poll.c core: add ability to customize memory allocator 2015-06-02 12:05:20 +02:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
inet.c win: use the MSVC provided snprintf where possible 2015-09-29 09:01:33 +02:00
queue.h unix: use QUEUE_MOVE when iterating over lists 2015-10-08 21:47:43 +02:00
threadpool.c src: replace QUEUE_SPLIT with QUEUE_MOVE 2015-10-08 21:46:48 +02:00
uv-common.c misc: expose handle print APIs 2015-11-16 09:34:34 +01:00
uv-common.h win: use the MSVC provided snprintf where possible 2015-09-29 09:01:33 +02:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00