Skip to content

lib: Fix crash when too many minutiae were detected

Bastien Nocera requested to merge wip/hadess/too-many-minutiae into master

struct xyt_struct uses a fixed-sized array to fit MAX_BOZORTH_MINUTIAE (200) minutiae. MAX_FILE_MINUTIAE is 1000. So if we detected more than MAX_BOZORTH_MINUTIAE, we would crash copying the data from the capture to the structure.

We might want to use dynamically allocated arrays in the future (or bigger ones) so that we don't lose minutiae.

Closes: #116 (closed)

Merge request reports