mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
omadec: Fix wrong number of array elements
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: David Goldwich <david.goldwich@gmail.com> CC:libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
e73996954d
commit
97f50e92b5
@ -263,7 +263,7 @@ static int decrypt_init(AVFormatContext *s, ID3v2ExtraMeta *em, uint8_t *header)
|
|||||||
!nprobe(s, gdata, geob->datasize, oc->n_val))
|
!nprobe(s, gdata, geob->datasize, oc->n_val))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i >= sizeof(leaf_table)) {
|
if (i >= FF_ARRAY_ELEMS(leaf_table)) {
|
||||||
av_log(s, AV_LOG_ERROR, "Invalid key\n");
|
av_log(s, AV_LOG_ERROR, "Invalid key\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user