mlz: limit next_code to data buffer size
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 14 Nov 2016 23:11:30 +0000 (00:11 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 15 Nov 2016 21:01:08 +0000 (22:01 +0100)
commit1abcd972c4c0e16f1e83be2fd32a251f51b2946d
treee958bdaee5141522744e1ae40f256da96fdd7d93
parentf1212e472b5f57b4f7243fc46f254647cf7e284d
mlz: limit next_code to data buffer size

This fixes a heap-buffer-overflow detected by AddressSanitizer.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/mlz.c