-j option easily leads to segfault
mwyczalkowski opened this issue · comments
Matthew Wyczalkowski commented
A misformed BED file passed as an argument to the -j argument leads to segmentation faults, which can be hard to diagnose.
- Specifying a chrom in the BED which is not in reference will lead to seg fault
- Having a comment ("# comment") in BED file will lead to seg fault (such comments are allowed in BED file specifications)
In general, implementing basic error checking when parsing this file and reporting errors more explicitly would be very helpful to the user.