ref: 667b479457fd7c1e9aff4ea8301295c81762bdf5
parent: 4a268f95b7d2a116e3ea53d297c1d5a29f46bf07
author: Chris Moeller <kode54@gmail.com>
date: Sun Jun 5 18:49:29 EDT 2011
- Fixed IT envelope reading for node counts over 25, which are invalid - Version is now 0.9.9.41 git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C684
--- a/dumb/src/it/itread.c
+++ b/dumb/src/it/itread.c
@@ -303,6 +303,8 @@
envelope->loop_end = dumbfile_getc(f);
envelope->sus_loop_start = dumbfile_getc(f);
envelope->sus_loop_end = dumbfile_getc(f);
+ if (envelope->n_nodes > 25)
+ envelope->n_nodes = 25;
for (n = 0; n < envelope->n_nodes; n++) {
envelope->node_y[n] = dumbfile_getc(f);
envelope->node_t[n] = dumbfile_igetw(f);