samtools / htslib

C library for high-throughput sequencing data formats
Other
804 stars 446 forks source link

Fix possible shift of negative value in cram_encode_aux() #1707

Closed daviesrob closed 10 months ago

daviesrob commented 10 months ago

Prevent undefined behaviour albeit on invalid aux tag keys. Fixed in the style of similar code later in the same function.

Credit to OSS-Fuzz Fixes oss-fuzz 64463