about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/ppm/ximtoppm.c6
-rw-r--r--doc/HISTORY3
2 files changed, 6 insertions, 3 deletions
diff --git a/converter/ppm/ximtoppm.c b/converter/ppm/ximtoppm.c
index d844031c..d839e770 100644
--- a/converter/ppm/ximtoppm.c
+++ b/converter/ppm/ximtoppm.c
@@ -125,9 +125,9 @@ ReadXimHeader(FILE *     const in_fp,
 #endif
     header->bits_channel = atoi(a_head.bits_per_channel);
     header->alpha_flag = atoi(a_head.alpha_channel);
-    pm_asprintf(&header->author,  a_head.author);
-    pm_asprintf(&header->date,    a_head.date);
-    pm_asprintf(&header->program, a_head.program);
+    header->author = pm_strdup(a_head.author);
+    header->date = pm_strdup(a_head.date);
+    header->program = pm_strdup(a_head.program);
 
     /* Do double checking for backwards compatibility */
     if (header->npics == 0)
diff --git a/doc/HISTORY b/doc/HISTORY
index 85fb3ea0..c5aff7a1 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -33,6 +33,9 @@ not yet  BJH  Release 10.92.00
               should have stopped it from working at all, despite reports from
               users that they were using it.
 
+              ximtoppm: Fix bug: invalid memory references with pathological
+              image input.  Broken in Netpbm 10.91 (June 2020).
+
               Configure: remove obsolete question about URL to put in pointer
               man pages of yesteryear.