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:23:45 +0000 (00:23 +0100)
commit40e846bb3f8e6fcc0133f1da24ef30de0a6c5f16
tree13174043f9c2b29d434e882f57860922a1f18cfb
parentf6755e5e19eb84de3e9f6838406d9f1f240c02b9
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