news
2008-07-06 21:16:31 by cat

poc tools patch

fixing segfault for mp3 with album data in file

 

--- ../poc-0.4.1-rel/mp3-read.c 2005-02-15 22:54:17.000000000 +0300
+++ mp3-read.c  2008-07-06 19:50:27.000000000 +0400
@@ -760,6 +760,11 @@

      return EEOF;

  }

+  if (frame->raw[0] != 0xFF || ((frame->raw[1] & 0xF0) != 0xF0 &&

(frame->raw[1] & 0xF0) != 0xE0)) {

+    resync = 1;
+    goto again;
+  }
+

  if ((frame->raw[0] == 0xFF) &&

      (((frame->raw[1] >> 4) & 0xF) == 0xF)) {
    if (!mp3_read_hdr(frame))


poc, mp3-read.c, mp3cut, mp3leng
show