shithub: opus

Download patch

ref: 2a82908062b9396f8fcf9c020b14a55adc17c583
parent: 101c8c874e11f5fc0d52319de62af251a6a3fb81
author: Mark Harris <[email protected]>
date: Sat Oct 12 21:23:58 EDT 2013

Rejects bad multistream frame length

Signed-off-by: Jean-Marc Valin <[email protected]>

--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -716,7 +716,7 @@
             return OPUS_INVALID_PACKET;
          for (i=0;i<count-1;i++)
             size[i] = size[count-1];
-      } else if(size[count-1] > last_size)
+      } else if (bytes+size[count-1] > last_size)
          return OPUS_INVALID_PACKET;
    } else
    {