You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This leads to problems reported in samtools/bcftools#1598 where region format is autodetected by first attempting to read chr beg end and, upon failure, reads chr pos. One relevant part of code that can be mislead by this is
Indeed, it shouldn't be recognising G as 0 gigabases/gigabytes; those suffixes should require some digits first, e.g. 1G.
I think it would be appropriate to only do the E and K/M/G processing if a non-zero number of digits have been seen. Or pretty much equivalently, by wrapping if (s > str) around this processing.
1e+3k doesn't seem good to accept, so I would suggest merging the E/e processing into the switch, so that only one instance of any of E/K/M/G is accepted.
The function does not reject strings like
G A
, thinking it was able to parse a coordinate due tohtslib/hts.c
Line 3513 in 1c8829a
This leads to problems reported in samtools/bcftools#1598 where region format is autodetected by first attempting to read
chr beg end
and, upon failure, readschr pos
. One relevant part of code that can be mislead by this ishtslib/synced_bcf_reader.c
Lines 1126 to 1130 in 1c8829a
The text was updated successfully, but these errors were encountered: