shithub: sox

Download patch

ref: f3eba5410364d7d8b4697738abdda0b291273993
parent: 7f1b933514428948f8708feb6430f6375b0c5314
author: cbagwell <cbagwell>
date: Tue Nov 18 20:36:38 EST 2008

Fix reading AIFF files with pad bytes in COMT chunk.

--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,7 @@
 Other bug fixes:
 
   o Fix [2262177] SoX build could fail with parse /etc/issue error.  (robs)
+  o Fix reading AIFF files with pad bytes in COMT chunks. (Joe Holt)
 
 Internal improvements:
 
--- a/src/aiff.c
+++ b/src/aiff.c
@@ -577,6 +577,7 @@
             lsx_fail_errno(ft,SOX_EOF,"AIFF: Unexpected EOF in %s header", chunkDescription);
             return(SOX_EOF);
         }
+        totalReadLength += 1;
     }
   }
   lsx_debug("%-10s   \"%s\"", chunkDescription, *text);