about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-09-29 18:32:25 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-09-29 18:32:25 +0000
commit022c7d37e5a2e86948dd066f79c773af42d4a55b (patch)
tree5a452af5651b4d8bcc722c381c430eb193221e4d
parentaf1a80d96f9bfb2086dd5314904d08583773df09 (diff)
downloadnetpbm-mirror-022c7d37e5a2e86948dd066f79c773af42d4a55b.tar.gz
netpbm-mirror-022c7d37e5a2e86948dd066f79c773af42d4a55b.tar.xz
netpbm-mirror-022c7d37e5a2e86948dd066f79c773af42d4a55b.zip
Fix uninitialized realloc variable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4708 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--converter/ppm/pjtoppm.c1
-rw-r--r--doc/HISTORY9
2 files changed, 7 insertions, 3 deletions
diff --git a/converter/ppm/pjtoppm.c b/converter/ppm/pjtoppm.c
index 7932886c..45746495 100644
--- a/converter/ppm/pjtoppm.c
+++ b/converter/ppm/pjtoppm.c
@@ -179,6 +179,7 @@ main(int argc, const char ** argv) {
     colsIsSet = false;  /* initial value */
     rowsX = 0;  /* initial value */
     image = NULL;  /* initial value */
+    imlen = NULL;  /* initial value */
     planes = 3;  /* initial value */
 
     while ((c = fgetc(ifP)) != -1) {
diff --git a/doc/HISTORY b/doc/HISTORY
index 80fe6b40..4ccbdf80 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -4,10 +4,13 @@ Netpbm.
 CHANGE HISTORY 
 --------------
 
-notyet   BJH  Release 11.05.00
+not yet  BJH  Release 11.05.00
 
-              Fix compile error on systems without 'asprintf'.  Introduced
-              in Netpbm 11.04 (September 2023).
+              pjtoppm: fix crash based on uninitialized variable.
+              Introduced in Netpbm 11.04 (September 2023).
+
+              Build: Fix compile error on systems without 'asprintf'.
+              Introduced in Netpbm 11.04 (September 2023).
 
 23.09.27 BJH  Release 11.04.00