Commit ebdb418b authored by michael's avatar michael

fix exploitable buffer overflow


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8850 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 606d176e
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment