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>
Thu, 17 Nov 2016 11:47:40 +0000 (12:47 +0100)
commit7521d5b8daae7969887f694caef5cd025f35b6ac
treee0be5da2f764d79e4a663e3d74b8b7dd5513dd8c
parent487accbf19be3879749ce5010abffb0c9894d5d6
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