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 duplicated but missing FORMAT bug #1761

Merged
merged 1 commit into from Mar 21, 2024

Conversation

daviesrob
Copy link
Member

7ce510c added code to drop duplicate FORMAT tags, but missed the case where the duplicated entry was off the end of the per-sample data, so it hit the part that put in MISSING values. This lead to an attempt to call memset() with a negative size. Fixed by adding code to skip the duplicated FORMAT tag.

7ce510c added code to drop duplicate FORMAT tags, but missed the
case where the duplicated entry was off the end of the per-sample
data, so it hit the part that put in MISSING values.  This lead
to an attempt to call memset() with a negative size.  Fixed by
adding code to skip the duplicated FORMAT tag.

Credit to OSS-Fuzz
Fixes oss-fuzz 67431
@pd3 pd3 merged commit 6ea61bf into samtools:develop Mar 21, 2024
9 checks passed
@daviesrob daviesrob deleted the dup_format_missing branch March 25, 2024 10:03
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.

None yet

2 participants