Invalid patterns in order list, loaded from a corrupt or invalid file may
cause a segfault. Replace them with a valid pattern (or we could also
reject the module entirely because it's corrupt). We replaced the invalid
pattern to be more tolerant, and because Schism Tracker seems to do that
as well.
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
from: Andreas Argirakis <andreas@blazer.nu>
to: xmp-devel@lists.sourceforge.net
date: Sat, Dec 28, 2013 at 11:14 PM
subject: [xmp] certain .mod crash on loading using xmp_load_module_from_memory
Using libxmp 4.2.0.
Using xmp_load_module_from_memory() loading (modland)Protracker/6-Mate/reborning.mod gives a crash. I tracked it down to void read_title(HIO_HANDLE *f, char *t, int s) in common.c.
Using xmp_load_module() works however fine with that module.
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>