diff options
author | Mark Harris <mark.hsj@gmail.com> | 2013-10-13 09:23:58 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-10-13 09:25:32 +0400 |
commit | 2a82908062b9396f8fcf9c020b14a55adc17c583 (patch) | |
tree | a329f33569355f6c712def026db23182d1d34617 /src/opus_decoder.c | |
parent | 101c8c874e11f5fc0d52319de62af251a6a3fb81 (diff) |
Rejects bad multistream frame length
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'src/opus_decoder.c')
-rw-r--r-- | src/opus_decoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opus_decoder.c b/src/opus_decoder.c index 76f55a80..1f395789 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -716,7 +716,7 @@ int opus_packet_parse_impl(const unsigned char *data, opus_int32 len, 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 { |