RFR: 8194154 patch for crash at File.getCanonicalPath() (original) (raw)
Wenqian Pei wenqian.peiwq at alibaba-inc.com
Mon Dec 25 09:40:14 UTC 2017
- Previous message: RFR 8193842: Refactor InputStream-to-OutputStream copy into a utility method
- Next message: RFR: 8194154 patch for crash at File.getCanonicalPath()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: RFR 8193842: Refactor InputStream-to-OutputStream copy into a utility method
- Next message: RFR: 8194154 patch for crash at File.getCanonicalPath()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]