]> granicus.if.org Git - libjpeg-turbo/commit
cjpeg: Fix OOB read caused by malformed 8-bit BMP
authorDRC <information@libjpeg-turbo.org>
Fri, 20 Jul 2018 22:21:36 +0000 (17:21 -0500)
committerDRC <information@libjpeg-turbo.org>
Sat, 21 Jul 2018 00:57:43 +0000 (19:57 -0500)
commit9c78a04df4e44ef6487eee99c4258397f4fdca55
tree8200c56e9a5a1ddaf644d7602bd6d380a9237b27
parent0fa7850aeb273204acd57be11f328b2be5d97dc6
cjpeg: Fix OOB read caused by malformed 8-bit BMP

... in which one or more of the color indices is out of range for the
number of palette entries.

Fix partly borrowed from jpeg-9c.  This commit also adopts Guido's
JERR_PPM_OUTOFRANGE enum value in lieu of our project-specific
JERR_PPM_TOOLARGE enum value.

Fixes #258
ChangeLog.md
cderror.h
rdbmp.c
rdppm.c