Commit a23a3dba authored by Michael Niedermayer's avatar Michael Niedermayer

qdm2: check array index before use, fix out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: 's avatarMichael Niedermayer <>
(cherry picked from commit a7ee6281)
Signed-off-by: 's avatarMichael Niedermayer <>
parent 0360dbef
......@@ -1262,6 +1262,11 @@ static void qdm2_decode_super_block (QDM2Context *q)
for (i = 0; packet_bytes > 0; i++) {
int j;
if (i>=FF_ARRAY_ELEMS(q->sub_packet_list_A)) {
SAMPLES_NEEDED_2("too many packet bytes");
q->sub_packet_list_A[i].next = NULL;
if (i > 0) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment