Commit 6481a360 authored by Michael Niedermayer's avatar Michael Niedermayer

cavs: fix oCERT #2011-002 FFmpeg/libavcodec insufficient boundary check

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0d4ea7b3
...@@ -115,7 +115,8 @@ static inline int get_ue_code(GetBitContext *gb, int order) { ...@@ -115,7 +115,8 @@ static inline int get_ue_code(GetBitContext *gb, int order) {
static int decode_residual_block(AVSContext *h, GetBitContext *gb, static int decode_residual_block(AVSContext *h, GetBitContext *gb,
const struct dec_2dvlc *r, int esc_golomb_order, const struct dec_2dvlc *r, int esc_golomb_order,
int qp, uint8_t *dst, int stride) { int qp, uint8_t *dst, int stride) {
int i, level_code, esc_code, level, run, mask; int i, esc_code, level, mask;
unsigned int level_code, run;
DCTELEM level_buf[65]; DCTELEM level_buf[65];
uint8_t run_buf[65]; uint8_t run_buf[65];
DCTELEM *block = h->block; DCTELEM *block = h->block;
......
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