summaryrefslogtreecommitdiff
path: root/trunk/cderror.h
diff options
context:
space:
mode:
authordcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2010-10-10 07:27:26 +0000
committerdcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2010-10-10 07:27:26 +0000
commit475fe754ffbbd237dee6457bb838c353b30e406e (patch)
tree9b569b8cd456643935e5936b14d3e057da4f87dc /trunk/cderror.h
parent0668b31a768bfcb7fba26a839524a540534f8350 (diff)
Add sanity check in BMP reader module to avoid cjpeg crash for empty input
image git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@250 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'trunk/cderror.h')
-rw-r--r--trunk/cderror.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/trunk/cderror.h b/trunk/cderror.h
index 70435e1..e19c475 100644
--- a/trunk/cderror.h
+++ b/trunk/cderror.h
@@ -2,6 +2,7 @@
* cderror.h
*
* Copyright (C) 1994-1997, Thomas G. Lane.
+ * Modified 2009 by Guido Vollbeding.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
@@ -45,6 +46,7 @@ JMESSAGE(JERR_BMP_BADHEADER, "Invalid BMP file: bad header length")
JMESSAGE(JERR_BMP_BADPLANES, "Invalid BMP file: biPlanes not equal to 1")
JMESSAGE(JERR_BMP_COLORSPACE, "BMP output must be grayscale or RGB")
JMESSAGE(JERR_BMP_COMPRESSED, "Sorry, compressed BMPs not yet supported")
+JMESSAGE(JERR_BMP_EMPTY, "Empty BMP image")
JMESSAGE(JERR_BMP_NOT, "Not a BMP file - does not start with BM")
JMESSAGE(JTRC_BMP, "%ux%u 24-bit BMP image")
JMESSAGE(JTRC_BMP_MAPPED, "%ux%u 8-bit colormapped BMP image")