torognes/swarm

Segmentation fault on empty sequences

Closed this issue · 2 comments

Continuing my work to build a test suite for swarm, I encountered a segmentation fault:

echo -e ">a_10\n" | swarm

It is similar to the issue 171 in vsearch.

I don't know how we should deal with empty sequences. Error message and exit? Or should we accept an empty sequence? The easiest and safest way is probably to exit with an error message.

Added check for empty sequences. Exits with fatal error if found.

implemented in swarm 2.1.13