Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix possible 1 byte underflow in find_file_extension() #1840

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

daviesrob
Copy link
Member

When checking for another delimiter before .gz or .bgz, the pointer into the string was decremented without checking to see if was at the start. This could lead to a one byte read before the start of the string when copying out the delimiter.

Credit to OSS_Fuzz
Fixes oss-fuzz id 71740

When checking for another delimiter before .gz or .bgz, the
pointer into the string was decremented without checking to
see if was at the start.  This could lead to a one byte read
before the start of the string when copying out the delimiter.

Credit to OSS_Fuzz
Fixes oss-fuzz id 71740
@vasudeva8 vasudeva8 merged commit 077cf70 into samtools:develop Sep 23, 2024
9 checks passed
@daviesrob daviesrob deleted the file_extension_underflow branch September 24, 2024 15:26
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.

2 participants