about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc/HISTORY5
-rw-r--r--urt/rle_error.c2
-rw-r--r--version.mk2
3 files changed, 7 insertions, 2 deletions
diff --git a/doc/HISTORY b/doc/HISTORY
index 308f903b..1d6d1359 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -4,6 +4,11 @@ Netpbm.
 CHANGE HISTORY 
 --------------
 
+19.08.09 BJH  Release 10.86.05
+
+              pnmtorle, rletopnm: fix wild pointer dereference when a memory
+              allocation fails.
+
 19.06.15 BJH  Release 10.86.04
 
               pamtris: Fix bug: debug trace left in
diff --git a/urt/rle_error.c b/urt/rle_error.c
index da314f0b..702c6e2d 100644
--- a/urt/rle_error.c
+++ b/urt/rle_error.c
@@ -46,7 +46,7 @@ int
 rle_alloc_error( pgm, name )
 CONST_DECL char *pgm, *name;
 {
-    if ( name )
+    if ( !name )
 	fprintf( stderr, "%s: memory allocation failed.\n", pgm );
     else
 	fprintf( stderr, "%s: memory allocation failed (no space for %s).\n",
diff --git a/version.mk b/version.mk
index f1ae314e..e5fda1d2 100644
--- a/version.mk
+++ b/version.mk
@@ -1,3 +1,3 @@
 NETPBM_MAJOR_RELEASE = 10
 NETPBM_MINOR_RELEASE = 86
-NETPBM_POINT_RELEASE = 4
+NETPBM_POINT_RELEASE = 5