diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-10-26 15:12:40 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-10-26 15:12:40 +0000 |
commit | 258661382fd87aaf31281c4817c9695d9cf2cae6 (patch) | |
tree | c11622655356aa217d78f18ae94c97d864793d61 | |
parent | 703563da864bcc5898b0a7c3f2e95c380873914c (diff) | |
download | netpbm-mirror-258661382fd87aaf31281c4817c9695d9cf2cae6.tar.gz netpbm-mirror-258661382fd87aaf31281c4817c9695d9cf2cae6.tar.xz netpbm-mirror-258661382fd87aaf31281c4817c9695d9cf2cae6.zip |
Release 10.35.11
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@111 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | Makefile.version | 2 | ||||
-rw-r--r-- | doc/HISTORY | 4 | ||||
-rw-r--r-- | lib/libpam.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.version b/Makefile.version index 20ad9478..178b54ca 100644 --- a/Makefile.version +++ b/Makefile.version @@ -1,3 +1,3 @@ NETPBM_MAJOR_RELEASE = 10 NETPBM_MINOR_RELEASE = 35 -NETPBM_POINT_RELEASE = 10 +NETPBM_POINT_RELEASE = 11 diff --git a/doc/HISTORY b/doc/HISTORY index e1730948..64efb6d8 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -4,6 +4,10 @@ Netpbm. CHANGE HISTORY -------------- +06.10.26 BJH Release 10.35.11 + + pnm_readpaminit(): Don't crash if width == 0. + 06.10.22 BJH Release 10.35.10 ppmtompeg: fix reading of GOP files. Thanks Alun Jones. diff --git a/lib/libpam.c b/lib/libpam.c index 6d2acba7..60d446d9 100644 --- a/lib/libpam.c +++ b/lib/libpam.c @@ -90,7 +90,7 @@ validateComputableSize(struct pam * const pamP) { if (depth > INT_MAX/sizeof(sample)) pm_error("image depth (%u) too large to be processed", depth); - else if (depth * sizeof(sample) > INT_MAX/pamP->width) + else if (pamP->width > 0 && depth * sizeof(sample) > INT_MAX/pamP->width) pm_error("image width and depth (%u, %u) too large " "to be processed.", pamP->width, depth); else if (pamP->width * (depth * sizeof(sample)) > |