hh-suite icon indicating copy to clipboard operation
hh-suite copied to clipboard

Fix buffer overflow in ffindex_from_fasta

Open konstin opened this issue 3 years ago • 3 comments

I could verify with valgrind that previously that this could lead to memory corruption.

Is there any suggested way to check if that has an impact on performance?

konstin avatar May 04 '21 16:05 konstin

Mainline does not have this problem: https://github.com/ahcm/ffindex

ahcm avatar Jul 30 '21 12:07 ahcm

@ahcm What's the relation between this repository and https://github.com/ahcm/ffindex? I was under the impression that ffindex is a part of and maintained by the hh-suite

konstin avatar Jul 30 '21 13:07 konstin

I wrote FFindex as the database format for Johannes' hhblits, when we were colleagues at LMU. So it's quite OK to package it. Unfortunately the code changes they made range from unnecessary to dangerous, introducing strange limitations and security flaws.

The switch to cmake I can understand, but think it's not worth the trouble.

To be honest, I never understood why they forked it when they left Munich. Debian/Ubuntu uses mainline and also their hhsuite package depends on it.

So I assume all features are present in mainline. If not just file an incident on mainline GitHub.

ahcm avatar Jul 30 '21 13:07 ahcm