Skip to content

legacy: check the v0.5 litlength header error before its table log - #4924

Open
Cyan4973 wants to merge 1 commit into
devfrom
legacy-v05-check-order
Open

Cyan4973 wants to merge 1 commit into
devfrom
legacy-v05-check-order

Conversation

@Cyan4973

Copy link
Copy Markdown
Contributor

ZSTDv05_loadEntropy() compared litlengthLog to its bound before checking that FSEv05_readNCount() succeeded.
When it fails early, litlengthLog is never set, and MSan reports an uninitialized read at -O0.

Both branches return dictionary_corrupted, so behavior doesn't change.
The offcode and matchlength blocks just above, and v0.6, already check in this order.

@meta-cla meta-cla Bot added the CLA Signed label Nov 11, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants