RFR 8202558 : Access to freed memory in java.base/unix/native/libnet/net_util_md.c
vyom tewari
vyom.tewari at oracle.com
Thu May 3 03:18:36 UTC 2018
Hi Ivan,
the url(http://cr.openjdk.java.net/~igerasim/8202558/00/webrev/ ) is not
accessible to me.
Thanks,
Vyom
On Thursday 03 May 2018 01:51 AM, Ivan Gerasimov wrote:
> I just realized that we've got a similar issue in the same file in the
> function initLocalIfs().
>
> The webrev was updated in place to fix this issue as well.
>
> With kind regards,
>
> Ivan
>
>
> On 5/2/18 12:54 PM, Ivan Gerasimov wrote:
>> Hello!
>>
>> The function needsLoopbackRoute() calls initLoopbackRoutes() to
>> initialize two global variables: loRoutes and nRoutes.
>>
>> If realloc() fails at line 582 then loRoutes is freed, but nRoutes is
>> left positive.
>>
>> Then, in needsLoopbackRoute() the already freed memory will be accessed.
>>
>> Would you please help review the fix?
>>
>> BUGURL: https://bugs.openjdk.java.net/browse/JDK-8202558
>> WEBREV: http://cr.openjdk.java.net/~igerasim/8202558/00/webrev/
>>
>> Thanks!
>>
More information about the net-dev
mailing list