lh3 / bioawk

BWK awk modified for biological data
590 stars 120 forks source link

Segmentation fault on empty files #37

Open blaiseli opened 4 years ago

blaiseli commented 4 years ago

bioawk segfaults when asked to parse an empty files

$ touch test.fastq
$ gzip test.fastq 
$ bioawk -c fastx '{print}' test.fastq.gz 
Segmentation fault

Actually, it also segfaults on non-gzipped input:

$ touch test.fastq
$ bioawk -c fastx '{print}' test.fastq
Segmentation fault

Is it something easily fixable?