RFR 8202558 : Access to freed memory in java.base/unix/native/libnet/net_util_md.c
Ivan Gerasimov
ivan.gerasimov at oracle.com
Wed May 2 20:21:42 UTC 2018
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