Re: RFR 8202558 : Access to freed memory in java.base/unix/native/libnet/net_util_md.c

2018-05-02 Thread vyom tewari
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

Re: RFR 8202558 : Access to freed memory in java.base/unix/native/libnet/net_util_md.c

2018-05-02 Thread Ivan Gerasimov
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()

RFR 8202558 : Access to freed memory in java.base/unix/native/libnet/net_util_md.c

2018-05-02 Thread Ivan Gerasimov
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

Re: java.net.Socket should report the attempted address and port

2018-05-02 Thread Péter Gergely Horváth
Hi Michael, Thank you for looking into this issue. I believe it would be a valuable improvement that would help a lot of people out there. Please let me know if there is any way I can help you. Thanks, Peter On Tue, May 1, 2018 at 10:48 AM, Michael McMahon < michael.x.mcma...@oracle.com>