Module: libav Branch: release/9 Commit: 1a0cdd18b0cc3373c3a1348a8d5a4dab86a994d5
Author: Kostya Shishkov <[email protected]> Committer: Luca Barbato <[email protected]> Date: Wed Jun 12 14:22:24 2013 +0200 smacker: fix an off by one in huff.length computation Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected] Signed-off-by: Luca Barbato <[email protected]> (cherry picked from commit ee205588b250fe5cae0681be8eba51a5403c3272) Signed-off-by: Luca Barbato <[email protected]> --- libavcodec/smacker.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c index b20a7b6..8c26e1e 100644 --- a/libavcodec/smacker.c +++ b/libavcodec/smacker.c @@ -246,7 +246,7 @@ static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int ctx.recode2 = tmp2.values; ctx.last = last; - huff.length = ((size + 3) >> 2) + 3; + huff.length = ((size + 3) >> 2) + 4; huff.maxlength = 0; huff.current = 0; huff.values = av_mallocz(huff.length * sizeof(int)); _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
