From b4f838a9bfbb656c7d24bcf1e39c616a0804f837 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 9 Aug 2019 03:10:39 +0000 Subject: Release 10.87.01 git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3657 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- doc/HISTORY | 5 +++++ urt/rle_error.c | 2 +- version.mk | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/HISTORY b/doc/HISTORY index a2618cad..1abab392 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -4,6 +4,11 @@ Netpbm. CHANGE HISTORY -------------- +19.08.09 BJH Release 10.87.01 + + pnmtorle, rletopnm: fix wild pointer dereference when a memory + allocation fails. + 19.06.28 BJH Release 10.87.00 pamfind: Add -machine . 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 abe9fa9e..c1e07f63 100644 --- a/version.mk +++ b/version.mk @@ -1,3 +1,3 @@ NETPBM_MAJOR_RELEASE = 10 NETPBM_MINOR_RELEASE = 87 -NETPBM_POINT_RELEASE = 0 +NETPBM_POINT_RELEASE = 1 -- cgit 1.4.1