[FFmpeg-cvslog] avcodec/h264dec: Fix potential array overread

Michael Niedermayer git at videolan.org
Thu Feb 1 01:51:32 EET 2018


ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Sat Oct 21 18:04:44 2017 +0200| [0af4a5b180d4fb5c67d3b1d7be2a1d2027691b37] | committer: Michael Niedermayer

avcodec/h264dec: Fix potential array overread

add padding before scantable arrays

See: 522d850e68ec4b77d3477b3c8f55b1ba00a9d69a

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 380b48fb9fdc7b0c40d67e026f9b3accb12794eb)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0af4a5b180d4fb5c67d3b1d7be2a1d2027691b37
---

 libavcodec/h264.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 73562882cd..981e7b1b3c 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -600,6 +600,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];



More information about the ffmpeg-cvslog mailing list