diff options
author | gmaxwell <gmaxwell@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2008-02-14 23:54:42 +0300 |
---|---|---|
committer | gmaxwell <gmaxwell@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2008-02-14 23:54:42 +0300 |
commit | fa2de633b25f998388f731b7f24acc89199edfed (patch) | |
tree | 99a16058f6c1cb9b1f16bea5b95356d0736b7605 /src | |
parent | a419fa7b5192c92632b77711c99d18f0e39b86d8 (diff) |
Fix for fuzz testing found bug: Handle zero byte packets from libogg correctly.
git-svn-id: http://svn.xiph.org/trunk/speex@14511 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'src')
-rw-r--r-- | src/speexdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/speexdec.c b/src/speexdec.c index e329c62..e4a425a 100644 --- a/src/speexdec.c +++ b/src/speexdec.c @@ -639,7 +639,7 @@ int main(int argc, char **argv) last_granule = page_granule; /*Extract all available packets*/ packet_no=0; - while (!eos && ogg_stream_packetout(&os, &op) == 1) + while (!eos && ogg_stream_packetout(&os, &op) == 1 && op.bytes>=5) { if (!memcmp(op.packet, "Speex", 5)) { speex_serialno = os.serialno; |