Backports

Description

It appears the fix for JDK-8200530 fails to handle the case that a \r\n is at the 8192 boundary (the size of Manifest.FastInputStream's default internal buf size), in which it does not consume the trailing \n, if the \r at the end of the buf. Then the manifest/attributes parser will fail to handling those "continuation line".

Attachments

Issue Links

backported by

JDK-8205213Fix for JDK-8200530 triggered regression: fails to handle the case that \r\n is at the 8192 boundary

Resolved

relates to

JDK-8200530'\r' is not supported as "newline" in java.util.jar.Manifest.