On 24/10/13 15:24, David Goldwich wrote: > From: Michael Niedermayer <[email protected]> > > Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind > Signed-off-by: David Goldwich <[email protected]> > --- > libavformat/omadec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/omadec.c b/libavformat/omadec.c > index e5a2090..98ccbde 100644 > --- a/libavformat/omadec.c > +++ b/libavformat/omadec.c > @@ -263,7 +263,7 @@ static int decrypt_init(AVFormatContext *s, > ID3v2ExtraMeta *em, uint8_t *header) > !nprobe(s, gdata, geob->datasize, oc->n_val)) > break; > } > - if (i >= sizeof(leaf_table)) { > + if (i >= FF_ARRAY_ELEMS(leaf_table)) { > av_log(s, AV_LOG_ERROR, "Invalid key\n"); > return AVERROR_INVALIDDATA; > } >
Shame on me for not checking properly. Patch ok and should move to stable as well. lu _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
