diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-02-21 21:38:05 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-02-21 21:38:05 +0000 |
commit | 6adc66266fa658c439f728d45fe5f4ff8e990c15 (patch) | |
tree | 6fa749ac691265a04635b378ff45afd7ced21072 /converter/other/pamtogif.c | |
parent | 1838e6e017a2a6e16140446e51dca9790743c6c3 (diff) | |
download | netpbm-mirror-6adc66266fa658c439f728d45fe5f4ff8e990c15.tar.gz netpbm-mirror-6adc66266fa658c439f728d45fe5f4ff8e990c15.tar.xz netpbm-mirror-6adc66266fa658c439f728d45fe5f4ff8e990c15.zip |
Release 10.37.03
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@232 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pamtogif.c')
-rw-r--r-- | converter/other/pamtogif.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/converter/other/pamtogif.c b/converter/other/pamtogif.c index ef3441cb..e1f5f85b 100644 --- a/converter/other/pamtogif.c +++ b/converter/other/pamtogif.c @@ -1417,6 +1417,14 @@ gifEncode(struct pam * const pamP, reportImageInfo(gInterlace, background, bitsPerPixel); + if (pamP->width > 65535) + pm_error("Image width %u too large for GIF format. (Max 65535)", + pamP->width); + + if (pamP->height > 65535) + pm_error("Image height %u too large for GIF format. (Max 65535)", + pamP->height); + writeGifHeader(ofP, pamP->width, pamP->height, background, bitsPerPixel, cmapP, comment); |