smacker: Check that the data size is a multiple of a sample vector
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 Nov 2015 13:52:08 +0000 (14:52 +0100)
committerDiego Biurrun <diego@biurrun.de>
Thu, 1 Jun 2017 12:22:01 +0000 (14:22 +0200)
commitb98f082d8ddc0a0d8317114d8414ab51de60ef02
tree59a20ce281e5270ea32c63a24f30e5e5c306202c
parent2ca759657bcda328acc312e5882a940333a3e268
smacker: Check that the data size is a multiple of a sample vector

Fixes out of array access
Fixes: ce19e41f0ef1e52a23edc488faecdb58/asan_heap-oob_2504e97_4202_ffa0df1baed14022b9bfd4f8ac23d0cb.smk

Bug-Id: CVE-2015-8365
CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4a9af07a49295e014b059c1ab624c40345af5892)
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavcodec/smacker.c