diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-10-16 20:39:42 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-10-16 20:39:42 +0000 |
commit | 97e0fd8ab1be6759068456a1f518458acab5a6f5 (patch) | |
tree | 59b0b260c4cfcce3c7c07f45bb5b52791bc8bb09 /lib/libpm.c | |
parent | 00c38a4486bd4ec06df964d51e8b6e10fa0a0227 (diff) | |
download | netpbm-mirror-97e0fd8ab1be6759068456a1f518458acab5a6f5.tar.gz netpbm-mirror-97e0fd8ab1be6759068456a1f518458acab5a6f5.tar.xz netpbm-mirror-97e0fd8ab1be6759068456a1f518458acab5a6f5.zip |
Expand headroom for preventing arithmetic overflow from 2 to 10, to allow for rounding up to a multiple of 8 in bitmap computations
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4155 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/libpm.c')
-rw-r--r-- | lib/libpm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpm.c b/lib/libpm.c index 6f9dea3d..78d941fa 100644 --- a/lib/libpm.c +++ b/lib/libpm.c @@ -844,6 +844,9 @@ pm_parse_width(const char * const arg) { Return the image width represented by the decimal ASCIIZ string 'arg'. Fail if it doesn't validly represent a width or represents a width that can't be conveniently used in computation. + + See comments at 'validateComputableSize' in libpam.c for details on + the purpose of these validations. -----------------------------------------------------------------------------*/ unsigned int width; const char * error; |