Code review request 6858865: Fix for 6728376 causes regression if the size of "data" is 0 and malloc returns Null for 0-length
Xueming Shen
xueming.shen at oracle.com
Fri Nov 19 22:03:47 UTC 2010
On 11/19/2010 01:51 PM, Alan Bateman wrote:
> Xueming Shen wrote:
>> :
>> Why do you want to feed the zlib with a null buffer? :-)
> So are you saying that if the length is 0 that it still looks at the
> buffer? If so, then I'm okay with the last webrev.
>
zlib does buffer null check before anything else, just like we do null
check/throw NPE first then
check the offset and length.
-Sherman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20101119/530df37e/attachment.html>
More information about the core-libs-dev
mailing list