summaryrefslogtreecommitdiff
path: root/src/png.c
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-06-29 18:59:45 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-06-29 18:59:45 +0200
commit3d56a7fc6ed2fd52b7da2fc4209233cbbc04c761 (patch)
tree32a87b1b2d938e387217dd0a5d760d31410a1b4c /src/png.c
parent2bd7d5e9376d920eed6859332163334c15de4b9d (diff)
use IMAGE_MAX_AREA instead of IMAGE_MAX_W and IMAGE_MAX_H
Diffstat (limited to 'src/png.c')
-rw-r--r--src/png.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/png.c b/src/png.c
index 98211ffe..353ebaa3 100644
--- a/src/png.c
+++ b/src/png.c
@@ -136,7 +136,7 @@ Png_datainfo_callback(png_structp png_ptr, png_infop info_ptr)
/* check max image size */
if (png->width <= 0 || png->height <= 0 ||
- png->width > (IMAGE_MAX_W * IMAGE_MAX_H) / png->height) {
+ png->width > IMAGE_MAX_AREA / png->height) {
MSG("Png_datainfo_callback: suspicious image size request %ldx%ld\n",
png->width, png->height);
Png_error_handling(png_ptr, "Aborting...");