[FFmpeg-devel] [PATCH 1/3] avcodec/h264dec: Fix potential array overread

Michael Niedermayer michael at niedermayer.cc
Sun Oct 22 02:41:56 EEST 2017


add padding before scantable arrays

See: 522d850e68ec4b77d3477b3c8f55b1ba00a9d69a

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavcodec/h264dec.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h
index 2106ba077e..de8b7c38b9 100644
--- a/libavcodec/h264dec.h
+++ b/libavcodec/h264dec.h
@@ -416,6 +416,7 @@ typedef struct H264Context {
     uint8_t (*mvd_table[2])[2];
     uint8_t *direct_table;
 
+    uint8_t scan_padding[16];
     uint8_t zigzag_scan[16];
     uint8_t zigzag_scan8x8[64];
     uint8_t zigzag_scan8x8_cavlc[64];
-- 
2.14.2



More information about the ffmpeg-devel mailing list