pcx: check that the packet is large enough before reading the header
authorAnton Khirnov <anton@khirnov.net>
Sun, 14 Aug 2016 08:18:39 +0000 (10:18 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 18 Aug 2016 15:06:46 +0000 (17:06 +0200)
commit221402c1c88b9d12130c6f5834029b535ee0e0c5
tree305e504acd76690bcf49c8db6e738632ac403a69
parent15ee419b7abaf17f8c662c145fe93d3dbf43282b
pcx: check that the packet is large enough before reading the header

Fixes possible invalid reads.

CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
libavcodec/pcx.c