[FFmpeg-cvslog] avcodec/hevc_ps: Fix c?_qp_offset_list size
Michael Niedermayer
git at videolan.org
Sun Sep 17 17:54:14 EEST 2017
ffmpeg | branch: release/3.1 | Michael Niedermayer <michael at niedermayer.cc> | Sun Sep 10 21:10:17 2017 +0200| [61c5c89d043896217df12455aa036ee24df49ff0] | committer: Michael Niedermayer
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 at niedermayer.cc>
(cherry picked from commit abf3f9fa232409c00b60041464604a91fa5612c0)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61c5c89d043896217df12455aa036ee24df49ff0
---
libavcodec/hevc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h
index be91010378..162ca0e582 100644
--- a/libavcodec/hevc.h
+++ b/libavcodec/hevc.h
@@ -539,8 +539,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;
More information about the ffmpeg-cvslog
mailing list