mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 21:14:47 +00:00
matroskadec: fix integer overflow
patch from reimar Originally committed as revision 24803 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
aa78a6d657
commit
4f90688b6e
@ -901,6 +901,9 @@ static int matroska_decode_buffer(uint8_t** buf, int* buf_size,
|
||||
int result = 0;
|
||||
int olen;
|
||||
|
||||
if (pkt_size >= 10000000)
|
||||
return -1;
|
||||
|
||||
switch (encodings[0].compression.algo) {
|
||||
case MATROSKA_TRACK_ENCODING_COMP_HEADERSTRIP:
|
||||
return encodings[0].compression.settings.size;
|
||||
|
Loading…
Reference in New Issue
Block a user