Skip to content

Enforce maximum block size limit#27

Open
asnare wants to merge 1 commit intojameshurst:mainfrom
asnare:verify-block-size-limit
Open

Enforce maximum block size limit#27
asnare wants to merge 1 commit intojameshurst:mainfrom
asnare:verify-block-size-limit

Conversation

@asnare
Copy link

@asnare asnare commented Jan 7, 2026

This PR updates the block writer to check the length before writing it out. Block bodies must be less than 16MiB in size. Prior to this change the block would be written out with the incorrect length, resulting in a corrupt FLAC file.

Resolves #26.

This prevents us from writing corrupted FLAC files, where more data is
written out than the length bytes indicate.
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.

Corrupt output if metadata block too large

1 participant