avcodec/xan: Check for bitstream end in xan_huffman_decode()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 3 Nov 2017 16:48:29 +0000 (17:48 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jan 2018 22:19:14 +0000 (23:19 +0100)
commitd7c29005a40fbc7f46075a639219d7341fbe2c09
treea27e463aaaf5349307bde2fc5f142bc0b188cd66
parent8b8502a66f00a0e2ae186d1edd3eeb2ef1eb6bd3
avcodec/xan: Check for bitstream end in xan_huffman_decode()

Fixes: Timeout
Fixes: 3707/clusterfuzz-testcase-6465922706440192

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4b51437dccd62fc5491280db44e3c21b44aeeb3f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/xan.c