ass_split: fix out of array access

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/8/head
Michael Niedermayer 12 years ago
parent 2c16bf2de0
commit 97b1ba696b
  1. 4
      libavcodec/ass_split.c

@ -250,7 +250,9 @@ static const char *ass_split_section(ASSSplitContext *ctx, const char *buf)
ptr = struct_ptr + section->fields[order[i]].offset;
convert_func[type](ptr, buf, len);
}
buf = skip_space(buf + len + !last);
buf += len;
if (!last && *buf) buf++;
buf = skip_space(buf);
}
}
} else {

Loading…
Cancel
Save