diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-10-21 18:04:44 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-01-08 23:19:14 +0100 |
commit | cbc839681b166ba58c35bbbbfd10b955304de3ed (patch) | |
tree | 74268c276da2f50c9f638b276290930acf458930 | |
parent | b51f515c5c837351f2104b43c0e2a0562a759086 (diff) | |
download | ffmpeg-cbc839681b166ba58c35bbbbfd10b955304de3ed.tar.gz |
avcodec/h264dec: Fix potential array overread
add padding before scantable arrays
See: 522d850e68ec4b77d3477b3c8f55b1ba00a9d69a
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 380b48fb9fdc7b0c40d67e026f9b3accb12794eb)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/h264dec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h index c8b7e663b3..d4978bbe97 100644 --- a/libavcodec/h264dec.h +++ b/libavcodec/h264dec.h @@ -422,6 +422,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]; |