diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-10 04:37:45 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-10 04:57:50 +0100 |
commit | 7cb46b519103ed62edbb992abfe564971043e5d9 (patch) | |
tree | 0148bf49faf79da73fd06775833a2e2d11ba1243 /libavcodec | |
parent | 2b12d1ffd841cf57976b124c1882e4a23a7c5f61 (diff) | |
download | ffmpeg-7cb46b519103ed62edbb992abfe564971043e5d9.tar.gz |
targa: use checked bytestream read
Fix out of array read
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/targa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/targa.c b/libavcodec/targa.c index 6bb05a93ad..18ad21d036 100644 --- a/libavcodec/targa.c +++ b/libavcodec/targa.c @@ -267,7 +267,7 @@ static int decode_frame(AVCodecContext *avctx, line = dst; y = 0; do { - bytestream2_get_bufferu(&s->gb, line, img_size); + bytestream2_get_buffer(&s->gb, line, img_size); line = advance_line(dst, line, stride, &y, h, interleave); } while (line); } |