Skip to content

fix: truncated buffer reads - #119

Open
ClementBeal wants to merge 1 commit into
mainfrom
fix/buffer-exact-read
Open

ClementBeal wants to merge 1 commit into
mainfrom
fix/buffer-exact-read

Conversation

@ClementBeal

Copy link
Copy Markdown
Owner

Buffer.read could return zero-padded bytes when a read exceeded the remaining file length, hiding truncated audio data from parsers.

read now validates that all requested bytes are available before allocation and checks direct large reads. readAtMost remains the explicit API for partial reads.

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.

1 participant