mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-21 06:50:56 +00:00
avcodec/iff: Fix invalid pointer intermediates in decode_deep_rle32()
Reviewed-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
64b80cb04b
commit
bc41a29a5a
@ -715,7 +715,7 @@ static void decode_deep_rle32(uint8_t *dst, const uint8_t *src, int src_size, in
|
|||||||
{
|
{
|
||||||
const uint8_t *src_end = src + src_size;
|
const uint8_t *src_end = src + src_size;
|
||||||
int x = 0, y = 0, i;
|
int x = 0, y = 0, i;
|
||||||
while (src + 5 <= src_end) {
|
while (src_end - src >= 5) {
|
||||||
int opcode;
|
int opcode;
|
||||||
opcode = *(int8_t *)src++;
|
opcode = *(int8_t *)src++;
|
||||||
if (opcode >= 0) {
|
if (opcode >= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user