summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_ps.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-09-10 21:10:17 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-09-12 01:52:14 +0200
commitabf3f9fa232409c00b60041464604a91fa5612c0 (patch)
tree4e66bce3b5343cc4998ba1cfc3c6a9e2ba12d4bb /libavcodec/hevc_ps.h
parent380659604f2692b625928a3a76a1c046f473c9f6 (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>
Diffstat (limited to 'libavcodec/hevc_ps.h')
-rw-r--r--libavcodec/hevc_ps.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevc_ps.h b/libavcodec/hevc_ps.h
index 78f9dd876e..4e6c3bc849 100644
--- a/libavcodec/hevc_ps.h
+++ b/libavcodec/hevc_ps.h
@@ -366,8 +366,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;