Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-30 03:41:51 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-09-30 03:42:33 +0400
commit1eead877669b04a7f029001bfea8c8c3fd46763d (patch)
tree151b6129539d76076daf304e08075e51a30db934 /libavcodec/rpza.c
parent1ad36551eca99bab51bfd771488ab0ff3af01323 (diff)
parent7ba0cedbfeff5671b264d1d7e90777057b5714c6 (diff)
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.c2
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;