RFR: 8194154 patch for crash at File.getCanonicalPath()

David Holmes david.holmes at oracle.com
Wed Dec 27 06:14:44 UTC 2017


Hi,

Attachments get stripped (usually). You'll need to include it inline.

Cheers,
David

On 25/12/2017 7:40 PM, Wenqian Pei wrote:
> 
> Hi:
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8194154
> 
> We found that if user defines -Duser.dir like "/home/a/b/c/", jvm will crash at File.getCanonicalPath() in java process bootstrap (before invoking user's java code). The native implematation of canonicalize_md.c:collapsible(char *names) has problem in processing double '/', parameter 'names' need normalized before JNI_CALL.
> 
> This patch normalize parameters before call canonicalize0() in this call path
> 
> Patch and test are in mailbox attachments.
> 
> Can I please have a review for this patch?
> 
> 
> Thanks
> 
> 
> Wenqian Pei
> 


More information about the core-libs-dev mailing list