diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-07-13 23:13:49 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-07-13 23:13:49 +0000 |
commit | a9311ae8756ef47f62ef4e4ce5e00f2fa1100ffe (patch) | |
tree | 5b0f90a9022a86464bdf7d53dfe98b28d6b142f2 | |
parent | 0f89a932017210fd45ec32e5660b1ee90bf8f469 (diff) | |
download | netpbm-mirror-a9311ae8756ef47f62ef4e4ce5e00f2fa1100ffe.tar.gz netpbm-mirror-a9311ae8756ef47f62ef4e4ce5e00f2fa1100ffe.tar.xz netpbm-mirror-a9311ae8756ef47f62ef4e4ce5e00f2fa1100ffe.zip |
Fix recent bug
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@673 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | converter/other/pngtopnm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/pngtopnm.c b/converter/other/pngtopnm.c index 012b870b..b32bb682 100644 --- a/converter/other/pngtopnm.c +++ b/converter/other/pngtopnm.c @@ -450,7 +450,7 @@ computePngLineSize(png_info * const pngInfoP) { default: samplesPerPixel = 1; } - if (UINT_MAX / bytesPerSample / samplesPerPixel > pngInfoP->width) + if (UINT_MAX / bytesPerSample / samplesPerPixel < pngInfoP->width) pm_error("Width %u of PNG is uncomputably large", (unsigned int)pngInfoP->width); |