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

Reply via email to