diff options
author | Rich Trott <rtrott@gmail.com> | 2016-09-16 22:45:00 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-09-21 22:47:33 -0700 |
commit | d2eb7ce0105369a9cad82787cb33a665e9bd00ad (patch) | |
tree | 1bf8e4caca2d4fa073263773d82114de6e0f80eb /deps/v8/test/cctest | |
parent | 7b7d50a29e098cea525892ad51e61cfa2897e8b8 (diff) | |
download | node-new-d2eb7ce0105369a9cad82787cb33a665e9bd00ad.tar.gz |
src: Malloc/Calloc size 0 returns non-null pointer
Change `Malloc()/Calloc()` so that size zero does not return a null
pointer, consistent with prior behavior.
Fixes: https://github.com/nodejs/node/issues/8571
PR-URL: https://github.com/nodejs/node/pull/8572
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@keybase.io>
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'deps/v8/test/cctest')
0 files changed, 0 insertions, 0 deletions