Skip to content

Manifest#Attribute#writeLine does not properly calculate max line length #18

Closed
@michael-o

Description

@michael-o

This method does line.getBytes().length > MAX_LINE_LENGTH and section.getBytes().length > MAX_SECTION_LENGTH. Ignoring that getBytes() relies on platform encoding. If the encoding is not UTF-8, the length in bytes might be calculated incorrectly and the output doesn't conform to the manifest spec anymore.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions