aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-10-21 18:04:44 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-12-02 00:28:59 +0100
commit2fc1a8ba4984097aca266d6539e52bcfe67d02fb (patch)
tree57b7abf04ba5e4c137c6e36ccc4072b46de5ae64 /libavcodec
parentb8a6b5602762e540fbac982cbc3689fa0d2768de (diff)
downloadffmpeg-2fc1a8ba4984097aca266d6539e52bcfe67d02fb.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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index a5fc3a053f..cfd14aa646 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -605,6 +605,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];