Skip to content
Snippets Groups Projects
Commit f52edef3 authored by Kostya Shishkov's avatar Kostya Shishkov Committed by Luca Barbato
Browse files

smacker: fix an off by one in huff.length computation


Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org

Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
parent 985f34b7
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment