libuv/src
cjihrig d82e47a60f unix: handle invalid _SC_GETPW_R_SIZE_MAX values
Some systems, FreeBSD for example, may return negative values.
sysconf() returns a long, which was being converted to a size_t.
This conversion lead to large allocations, and subsequent out of
memory failures. This commit checks the long value returned by
sysconf() properly, and uses a default value of 4096 if a negative
number is returned.

PR-URL: https://github.com/libuv/libuv/pull/389
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2015-06-05 19:44:31 +02:00
..
unix unix: handle invalid _SC_GETPW_R_SIZE_MAX values 2015-06-05 19:44:31 +02:00
win win: fix compilation warning on MinGW 2015-06-03 21:13:03 +02: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 unix, windows: fix parsing scoped IPv6 addresses 2014-05-25 23:30:46 +02:00
queue.h queue: strengthen type checks 2013-11-02 13:55:57 +01:00
threadpool.c core: add ability to customize memory allocator 2015-06-02 12:05:20 +02:00
uv-common.c core: add ability to customize memory allocator 2015-06-02 12:05:20 +02:00
uv-common.h core: add ability to customize memory allocator 2015-06-02 12:05:20 +02:00
version.c Now working on v0.10.31 2014-12-09 19:49:50 +01:00