diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-24 15:24:24 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2014-01-05 17:12:19 -0500 |
commit | 35f9a0896ee6858114831a5a8e951872e4473a75 (patch) | |
tree | fe08d631f2abe290a4009947a1547e712ce71e6e | |
parent | cdc47c48137fd5eb2e8195a005b6d59480b4d570 (diff) | |
download | ffmpeg-35f9a0896ee6858114831a5a8e951872e4473a75.tar.gz |
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>
(cherry picked from commit 97f50e92b5cf3b47a76f75d76ed4340e822030db)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-rw-r--r-- | libavformat/omadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/omadec.c b/libavformat/omadec.c index 158e1a6abe..e3b151886e 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 -1; } |