Skip to content

fix: read.go ReadBytesHeader avoid nil slice deref#393

Merged
philhofer merged 1 commit intotinylib:masterfrom
wooffie:fix-read-header-nil-slice-deref
Jun 23, 2025
Merged

fix: read.go ReadBytesHeader avoid nil slice deref#393
philhofer merged 1 commit intotinylib:masterfrom
wooffie:fix-read-header-nil-slice-deref

Conversation

@wooffie
Copy link
Contributor

@wooffie wooffie commented Jun 23, 2025

I believe p[0] is wrong for returning error. Check another badPrefix calls in this file, and its signature.

Copy link
Collaborator

@klauspost klauspost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably look at fuzz testing. This looks like a crash bug.

@philhofer philhofer merged commit 3773182 into tinylib:master Jun 23, 2025
4 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.

3 participants