Skip to content
Snippets Groups Projects
Commit 97f50e92 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Anton Khirnov
Browse files

omadec: Fix wrong number of array elements


Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: default avatarDavid Goldwich <david.goldwich@gmail.com>
CC:libav-stable@libav.org
Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent e7399695
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment