Commit 380b48fb authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264dec: Fix potential array overread

add padding before scantable arrays

See: 522d850eSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent bff6d98b
...@@ -417,6 +417,7 @@ typedef struct H264Context { ...@@ -417,6 +417,7 @@ typedef struct H264Context {
uint8_t (*mvd_table[2])[2]; uint8_t (*mvd_table[2])[2];
uint8_t *direct_table; uint8_t *direct_table;
uint8_t scan_padding[16];
uint8_t zigzag_scan[16]; uint8_t zigzag_scan[16];
uint8_t zigzag_scan8x8[64]; uint8_t zigzag_scan8x8[64];
uint8_t zigzag_scan8x8_cavlc[64]; uint8_t zigzag_scan8x8_cavlc[64];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment