node/deps/cares
Gireesh Punathil 40ede46690 cares: Support malloc(0) scenarios for AIX
Many places in cares library, when the stream data arrives
from the network with respect to dns and reverse dns
resolution, they are populated into data structures created
dymaically based on the size of the data. Malloc is heavily
used for such cases.

Often, based on the data length, malloc(0) is invoked. Linux
behavior on zero byte allocation is to return a valid pointer
where in AIX, it always return NULL.

This manifestst as test failure of test/internet/test-dns.js

Solution is to build cares with Linux compatible malloc behavior

PR-URL: https://github.com/nodejs/node/pull/6305
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-by: Michael Dawson <michael_dawson@ca.ibm.com>
2016-04-21 19:20:37 -04:00
..
build Add c-ares dependency 2012-08-07 01:49:02 +02:00
config build: Updates to enable AIX support 2015-09-15 13:17:28 -04:00
include deps: sync with upstream c-ares/c-ares@4ef6817 2016-02-11 22:23:48 -05:00
src deps: reapply c-ares floating patch 2016-02-11 22:23:48 -05:00
.gitignore deps: upgrade c-ares to piscisaureus/cares@805d153 2013-07-06 22:20:29 +02:00
Makefile deps: upgrade c-ares to 1.10.0 2013-05-14 02:07:35 +02:00
android-configure deps: upgrade c-ares to piscisaureus/cares@805d153 2013-07-06 22:20:29 +02:00
build.mk deps: upgrade c-ares to piscisaureus/cares@805d153 2013-07-06 22:20:29 +02:00
cares.gyp cares: Support malloc(0) scenarios for AIX 2016-04-21 19:20:37 -04:00
common.gypi build: Updates to enable AIX support 2015-09-15 13:17:28 -04:00
gyp_cares deps: upgrade c-ares to piscisaureus/cares@805d153 2013-07-06 22:20:29 +02:00