1
0
Fork 0
forked from len0rd/rockbox

AIFF COMM chunks might be larger than 18 bytes.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13249 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2007-04-23 23:11:33 +00:00
parent 77a868360f
commit 27b4a64f9b

View file

@ -98,8 +98,8 @@ next_track:
/* chunkSize */
i = ((buf[4]<<24)|(buf[5]<<16)|(buf[6]<<8)|buf[7]);
if (memcmp(buf, "COMM", 4) == 0) {
if (i != 18) {
DEBUGF("CODEC_ERROR: 'COMM' chunk size=%lu != 18\n",
if (i < 18) {
DEBUGF("CODEC_ERROR: 'COMM' chunk size=%lu < 18\n",
(unsigned long)i);
i = CODEC_ERROR;
goto done;