From 97e0fd8ab1be6759068456a1f518458acab5a6f5 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 16 Oct 2021 20:39:42 +0000 Subject: 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 --- lib/libpm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/libpm.c') 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; -- cgit 1.4.1