RFR: 8186334: JarFile throws ArrayIndexOutOfBoundsException when the manifest contains certain characters

Brent Christian brent.christian at oracle.com
Mon Aug 21 18:48:40 UTC 2017

Hi, Claes

Fix looks good, test looks good.

On 08/21/2017 02:53 AM, Claes Redestad wrote:
> Hi,
> this patch addresses an unfortunate regression where backtick characters
> in a manifest can cause an AIOOBE.
> Webrev: http://cr.openjdk.java.net/~redestad/8186334/jdk.00/
> Bug: https://bugs.openjdk.java.net/browse/JDK-8186334
> Basically an off-by-one issue during certain steps in the search algorithm,
> meaning it is context dependent whether a backtick will trip on this issue
> or not.
> /Claes

More information about the core-libs-dev mailing list