Skip to content

fix TLV Parser BER long-form length parsing#2289

Open
williballenthin wants to merge 1 commit intogchq:masterfrom
williballenthin:fix-2245
Open

fix TLV Parser BER long-form length parsing#2289
williballenthin wants to merge 1 commit intogchq:masterfrom
williballenthin:fix-2245

Conversation

@williballenthin
Copy link
Copy Markdown

Three bugs in getLength(): missing location advance past the initial length byte in the long-form branch, wrong byte order (little-endian instead of big-endian), and mutation of this.bytesInLength corrupting subsequent entries.

Closes #2245

AI disclosure
Claude Code Opus 4.6

Three bugs in getLength(): missing location advance past the initial
length byte in the long-form branch, wrong byte order (little-endian
instead of big-endian), and mutation of this.bytesInLength corrupting
subsequent entries.

Closes gchq#2245
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug report: TLV Parser produces incorrect BER-encoded lengths

2 participants