Skip to content
  • Bastien Nocera's avatar
    lib: Fix crash when too many minutiae were detected · 3a7b03f0
    Bastien Nocera authored
    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
    3a7b03f0