Hi there,
the attached patch fixes the vulnerability CVE-2015-3885 which made the function ljpeg_start() in dcraw (and all programs using the affected code) susceptible to writing long past the end of the array data if the length field in the header of the file was smaller than 2.
The patch is basically identical to the one I submitted for dcraw.
Hi Nils.
Thank you for the report and patch. I have commited it to the cvs repository.
Regards,
Niels Kristian