diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-08-10 13:28:36 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-08-10 13:46:22 +0200 |
commit | 91d5da9321c52e8197fb14046ebb335f3e6ff4a0 (patch) | |
tree | 14d5d93552d9088c49a391ad34fb3bbd16c8721c | |
parent | 08ddfb77a1aff378345026ba49fea9fb93ff1e70 (diff) | |
download | ffmpeg-91d5da9321c52e8197fb14046ebb335f3e6ff4a0.tar.gz |
cavs: fix oCERT #2011-002 FFmpeg/libavcodec insufficient boundary check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/cavsdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c index c6ccb06524..6e83a7d381 100644 --- a/libavcodec/cavsdec.c +++ b/libavcodec/cavsdec.c @@ -115,7 +115,8 @@ static inline int get_ue_code(GetBitContext *gb, int order) { static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, 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]; uint8_t run_buf[65]; DCTELEM *block = h->block; |