RFR: 8194154 patch for crash at File.getCanonicalPath()
Wenqian Pei
wenqian.peiwq at alibaba-inc.com
Mon Dec 25 09:40:14 UTC 2017
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