OSDN Git Service

avcodec/qdrw: Fix null pointer dereference
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Jun 2017 19:37:47 +0000 (21:37 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Jun 2017 21:41:35 +0000 (23:41 +0200)
commit46b865ea9f86cbd12e1bf701913263c7932cccb0
treef7f92553ae5b7b9c401393c7b9bf325a4bf164ab
parentb315a3cf42a15358ab38279723f3c93406a66f6a
avcodec/qdrw: Fix null pointer dereference

The RGB555 PACKBITSRGN case tries to read a palette, if such
palette is actually stored then it accesses a null pointer.
All 16bit samples i could find use DIRECTBITSRGN.

Fixes: 2065/clusterfuzz-testcase-minimized-6298930457346048

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/qdrw.c