Skip to content

Fix hierarchy packed length read past section - #28

Merged
tbybell merged 2 commits into
gtkwave:mainfrom
Rodrigodd:upstream/hierarchy-lz4duo-short
Oct 18, 2026
Merged

tbybell merged 2 commits into
gtkwave:mainfrom
Rodrigodd:upstream/hierarchy-lz4duo-short

Conversation

@Rodrigodd

Copy link
Copy Markdown
Contributor

Problem: a doubly LZ4 packed hierarchy section reads a varint from a buffer sized to the section. An unterminated varint can therefore read past the end of the buffer.

Solution: add a null byte at the end of the buffer so an unterminated varint terminates within the allocation, and check if that has happened.

Rodrigodd and others added 2 commits October 17, 2026 14:47
Problem: a doubly LZ4 packed hierarchy section reads a varint from a
buffer sized to the section. An unterminated varint can therefore read
past the end of the buffer.

Solution: add a null byte at the end of the buffer so an unterminated
varint terminates within the allocation, and check if that has happened.
@tbybell
tbybell merged commit 9f5386f into gtkwave:main Oct 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants