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 19:54:00 UTC 2018
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!
--
With kind regards,
Ivan Gerasimov
More information about the net-dev
mailing list