Browse Source

fraps: check for overread.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
tags/n0.9
Michael Niedermayer Anton Khirnov 13 years ago
parent
commit
5ace144fe0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/fraps.c

+ 4
- 0
libavcodec/fraps.c View File

@@ -111,6 +111,10 @@ static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
*/ */
if(j) dst[i] += dst[i - stride]; if(j) dst[i] += dst[i - stride];
else if(Uoff) dst[i] += 0x80; else if(Uoff) dst[i] += 0x80;
if (get_bits_left(&gb) < 0) {
free_vlc(&vlc);
return AVERROR_INVALIDDATA;
}
} }
dst += stride; dst += stride;
} }


Loading…
Cancel
Save