summaryrefslogtreecommitdiff
path: root/libavcodec/targa.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-10 04:37:45 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-10 04:57:50 +0100
commit7cb46b519103ed62edbb992abfe564971043e5d9 (patch)
tree0148bf49faf79da73fd06775833a2e2d11ba1243 /libavcodec/targa.c
parent2b12d1ffd841cf57976b124c1882e4a23a7c5f61 (diff)
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/targa.c')
-rw-r--r--libavcodec/targa.c2
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);
}