avcodec/sunrast: Fix input buffer pointer check
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 1 Nov 2016 18:24:49 +0000 (19:24 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 26 Nov 2016 14:12:26 +0000 (15:12 +0100)
commitf9e76d3304b72b66434b0a6253daf10b50464e20
treecae689dbaecf261e1ec08af1907887717fba8f0d
parent3213adceb2a8bdadc0e38b45ba068b24a85306dc
avcodec/sunrast: Fix input buffer pointer check

Fixes: out of array read
Fixes: poc.dat

Found-by: Bingchang, Liu @VARAS of IIE
Tested-by: bc L <l.bing.chang.bc@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 37138338ff602803d174b13fecd363a083bc2f9a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/sunrast.c