Browse Source

rv30: check block type validity

Prevents crashes with the fuzzed samples from bugs 88, 89 and 125 after
"golomb: avoid infinite loop on all-zero input".
tags/n0.11
Janne Grunau 13 years ago
parent
commit
18d1d5886b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/rv30.c

+ 1
- 1
libavcodec/rv30.c View File

@@ -103,7 +103,7 @@ static int rv30_decode_mb_info(RV34DecContext *r)
GetBitContext *gb = &s->gb;
int code = svq3_get_ue_golomb(gb);

if(code > 11){
if (code < 0 || code > 11) {
av_log(s->avctx, AV_LOG_ERROR, "Incorrect MB type code\n");
return -1;
}


Loading…
Cancel
Save