diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-06-29 18:59:45 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-06-29 18:59:45 +0200 |
commit | 3d56a7fc6ed2fd52b7da2fc4209233cbbc04c761 (patch) | |
tree | 32a87b1b2d938e387217dd0a5d760d31410a1b4c /src/jpeg.c | |
parent | 2bd7d5e9376d920eed6859332163334c15de4b9d (diff) |
use IMAGE_MAX_AREA instead of IMAGE_MAX_W and IMAGE_MAX_H
Diffstat (limited to 'src/jpeg.c')
-rw-r--r-- | src/jpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -282,7 +282,7 @@ static void Jpeg_write(DilloJpeg *jpeg, void *Buf, uint_t BufSize) /* check max image size */ if (jpeg->cinfo.image_width <= 0 || jpeg->cinfo.image_height <= 0 || jpeg->cinfo.image_width > - (IMAGE_MAX_W * IMAGE_MAX_H) / jpeg->cinfo.image_height) { + IMAGE_MAX_AREA / jpeg->cinfo.image_height) { MSG("Jpeg_write: suspicious image size request %ux%u\n", (uint_t)jpeg->cinfo.image_width, (uint_t)jpeg->cinfo.image_height); |