JDK-8240629 : argfiles parsing broken for argfiles with comment cross 4096 bytes chunk
  • Type: Bug
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 9,11,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-03-05
  • Updated: 2020-06-03
  • Resolved: 2020-03-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14 JDK 15
11.0.8-oracleFixed 13.0.4Fixed 14.0.2Fixed 15 b14Fixed
Related Reports
Relates :  
Description
As reported by Robert Stupp in mailing list
https://mail.openjdk.java.net/pipermail/core-libs-dev/2020-March/065135.html

When a comment line last character is the 4096th of the chunk, the comment line is mistakenly considered as a valid argument.

Attached is the argument file from the report that can be used to reproduce the bug.
Comments
Fix request (13u): I'd like to port it to 13u as well. Patch applies cleanly. Tier1 tests run OK.
03-06-2020

Fix Request [11u, 14u]: See https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2020-March/002804.html Fairly trivial fix with test case that applies cleanly.
18-03-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/79371dab85c2 User: henryjen Date: 2020-03-09 16:38:52 +0000
09-03-2020