Skip to content

reject out-of-range numFrames in seekable seek table loader - #4717

Open
saleemno1 wants to merge 1 commit into
facebook:devfrom
saleemno1:seektable-numframes-overflow
Open

reject out-of-range numFrames in seekable seek table loader#4717
saleemno1 wants to merge 1 commit into
facebook:devfrom
saleemno1:seektable-numframes-overflow

Conversation

@saleemno1

Copy link
Copy Markdown

a corrupt seekable footer can claim any numFrames, and since ZSTD_seekable_loadSeekTable never bounds it against ZSTD_SEEKABLE_MAXFRAMES the way the compressor does, the U32 tableSize math overflows (and the seekEntry_t allocation wraps on 32-bit) into an undersized heap buffer that the fill loop overruns, so this rejects it up front as corruption.

@meta-cla meta-cla Bot added the CLA Signed label Jul 29, 2026
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.

1 participant