avcodec/gif: Fix lzw buffer size
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 18 Jan 2016 18:20:03 +0000 (19:20 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 30 Jan 2016 23:24:51 +0000 (00:24 +0100)
commit9f30eafd0f31c2b5c4f7c86fecabbdde1282e079
tree7c04422904f52deca9bb03fd1cf22ed8b806b3ab
parent22e20a1d833e5ce8c560a6c0d6f4b4e78b075385
avcodec/gif: Fix lzw buffer size

Fixes out of array access
Fixes: aaa479088e6fb40b04837b3119f47b04/asan_heap-oob_e38c68_8576_9d653078b2470700e2834636f12ff557.tga

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 03d83ba34b2070878909eae18dfac0f519503777)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/gif.c