mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-04 02:10:01 +02:00
fix exploitable buffer overflow
Originally committed as revision 8850 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e69364b700
commit
9f1473b304
@ -1089,6 +1089,9 @@ static int dca_convert_bitstream(uint8_t * src, int src_size, uint8_t * dst,
|
||||
uint16_t *ssrc = (uint16_t *) src, *sdst = (uint16_t *) dst;
|
||||
PutBitContext pb;
|
||||
|
||||
if((unsigned)src_size > (unsigned)max_size)
|
||||
return -1;
|
||||
|
||||
mrk = AV_RB32(src);
|
||||
switch (mrk) {
|
||||
case DCA_MARKER_RAW_BE:
|
||||
|
Loading…
Reference in New Issue
Block a user