diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-30 01:41:51 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-30 01:42:33 +0200 |
commit | 1eead877669b04a7f029001bfea8c8c3fd46763d (patch) | |
tree | 151b6129539d76076daf304e08075e51a30db934 /libavcodec/rpza.c | |
parent | 1ad36551eca99bab51bfd771488ab0ff3af01323 (diff) | |
parent | 7ba0cedbfeff5671b264d1d7e90777057b5714c6 (diff) | |
download | ffmpeg-1eead877669b04a7f029001bfea8c8c3fd46763d.tar.gz |
Merge commit '7ba0cedbfeff5671b264d1d7e90777057b5714c6'
* commit '7ba0cedbfeff5671b264d1d7e90777057b5714c6':
rpza: Fix a buffer size check
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/rpza.c')
-rw-r--r-- | libavcodec/rpza.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rpza.c b/libavcodec/rpza.c index 416f8b6722..0bcec35ac4 100644 --- a/libavcodec/rpza.c +++ b/libavcodec/rpza.c @@ -204,7 +204,7 @@ static void rpza_decode_stream(RpzaContext *s) /* Fill block with 16 colors */ case 0x00: - if (s->size - stream_ptr < 16) + if (s->size - stream_ptr < 30) return; ADVANCE_BLOCK(); block_ptr = row_ptr + pixel_ptr; |