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>
Thu, 15 Jun 2017 23:05:29 +0000 (01:05 +0200)
commit5c82f67012c33842a620315a6a73dfde57e504f1
tree740d1331da1d0175e9f624ab0f66a3fa38ab01e8
parent25b7dc959a087455834585d8e2c0c5a639f2d8e8
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>
(cherry picked from commit 46b865ea9f86cbd12e1bf701913263c7932cccb0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/qdrw.c