Even though the Mistletoe genome has been chopped into references less than 2^31 bases long, it seems they're still long enough to trigger an arithmetic overflow in load_ref_portion().
The fai entry for the first reference is:
OY728119.1 2143528264 58 80 81
which gives these values for offest and len in the code linked above:
The len value goes on to cause a malloc() failure, which is happily caught but causes the CRAM writer to drop into embed_ref mode when it shouldn't have to.
Even though the Mistletoe genome has been chopped into references less than 2^31 bases long, it seems they're still long enough to trigger an arithmetic overflow in
load_ref_portion()
.The fai entry for the first reference is:
which gives these values for
offest
andlen
in the code linked above:The
len
value goes on to cause amalloc()
failure, which is happily caught but causes the CRAM writer to drop into embed_ref mode when it shouldn't have to.