about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/ppm/pjtoppm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/ppm/pjtoppm.c b/converter/ppm/pjtoppm.c
index 5abab142..7932886c 100644
--- a/converter/ppm/pjtoppm.c
+++ b/converter/ppm/pjtoppm.c
@@ -90,7 +90,7 @@ modifyImageMode1(unsigned int     const rows,
             }
         }
     }
-    *colsP = cols * 8;
+    *colsP = cols * 8;  assert(cols < UINT_MAX/8);
 }