Skip to content
Permalink
Browse files Browse the repository at this point in the history
Remove unused out-of-bounds memory access from MTM loader (#249)
  • Loading branch information
jangler committed Apr 6, 2021
1 parent e665489 commit 1e2cc38
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fmt/mtm.c
Expand Up @@ -207,7 +207,6 @@ int fmt_mtm_load_song(song_t *song, slurp_t *fp, unsigned int lflags)

song->patterns[pat] = csf_allocate_pattern(MAX(rows, 32));
song->pattern_size[pat] = song->pattern_alloc_size[pat] = 64;
tracknote = trackdata[n];
for (chan = 0; chan < 32; chan++) {
slurp_read(fp, &tmp, 2);
tmp = bswapLE16(tmp);
Expand Down

0 comments on commit 1e2cc38

Please sign in to comment.