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 <michael@niedermayer.cc>2017-09-10 22:10:17 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-09-17 13:21:32 +0300
commit0a5251d28eb6250fd5c1260bcf2ac72c12568da8 (patch)
treebf4aa0b94c517334a89b76ac941043e5d7e385c4
parent2cfabd8ce7913dcf4d5413441d0fb5a02cd18884 (diff)
avcodec/hevc_ps: Fix c?_qp_offset_list size
Fixes: runtime error: index 5 out of bounds for type 'int8_t const[5]' Fixes:3175/clusterfuzz-testcase-minimized-4736774054084608 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit abf3f9fa232409c00b60041464604a91fa5612c0) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/hevc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h
index 6a3c7506c2..2afad011b7 100644
--- a/libavcodec/hevc.h
+++ b/libavcodec/hevc.h
@@ -545,8 +545,8 @@ typedef struct HEVCPPS {
uint8_t chroma_qp_offset_list_enabled_flag;
uint8_t diff_cu_chroma_qp_offset_depth;
uint8_t chroma_qp_offset_list_len_minus1;
- int8_t cb_qp_offset_list[5];
- int8_t cr_qp_offset_list[5];
+ int8_t cb_qp_offset_list[6];
+ int8_t cr_qp_offset_list[6];
uint8_t log2_sao_offset_scale_luma;
uint8_t log2_sao_offset_scale_chroma;