mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
2b12d1ffd8
commit
7cb46b5191
@ -267,7 +267,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
line = dst;
|
line = dst;
|
||||||
y = 0;
|
y = 0;
|
||||||
do {
|
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);
|
line = advance_line(dst, line, stride, &y, h, interleave);
|
||||||
} while (line);
|
} while (line);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user