Browse Source

avcodec/h264dec: Fix potential array overread

add padding before scantable arrays

See: 522d850e68

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 380b48fb9f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.3.6
Michael Niedermayer 8 years ago
parent
commit
aac7ca7a36
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/h264dec.h

+ 1
- 0
libavcodec/h264dec.h View File

@@ -415,6 +415,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];


Loading…
Cancel
Save