-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix duplicated but missing FORMAT bug
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
- Loading branch information
Showing
3 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
##fileformat=VCFv4.3 | ||
##contig=<ID=3> | ||
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype"> | ||
##FORMAT=<ID=S,Number=1,Type=String,Description="Non-GT string"> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA1 | ||
3 50 . A T 0 PASS . GT:GT 0/1 | ||
3 60 . T C 0 PASS . GT 0/1 | ||
3 70 . G A 0 PASS . GT:GT 0/1:. | ||
3 80 . C G 0 PASS . GT:GT 0/1:0/1 | ||
3 90 . A G 0 PASS . GT:S:S 0/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters