From e6e30e94b1da12d0a3247db3b25311bafb8230e6 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 9 Aug 2019 03:06:48 +0000 Subject: Remove RLE_CHECK_ALLOC and rle_alloc_error from URT library. This fixes a wild pointer dereference as well as cleans up code git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3656 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- urt/rle.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'urt/rle.h') diff --git a/urt/rle.h b/urt/rle.h index 5d5ff33a..00717748 100644 --- a/urt/rle.h +++ b/urt/rle.h @@ -69,14 +69,6 @@ typedef unsigned short rle_map; */ #define RLE_INIT_MAGIC 0x6487ED51L -/***************************************************************** - * TAG( RLE_CHECK_ALLOC ) - * - * Test for allocation failure, scream and die if so. - */ -#define RLE_CHECK_ALLOC( pgm, ptr, name ) \ - ( !(ptr) ? rle_alloc_error( pgm, name ) : 0 ) - /* * TAG( rle_hdr ) * @@ -163,15 +155,6 @@ extern rle_hdr rle_dflt_hdr; /* Declare RLE library routines. */ -/* From rle_error.c. */ -/***************************************************************** - * TAG( rle_alloc_error ) - * - * Print memory allocation error message and exit. - */ -extern int rle_alloc_error( const char *pgm, - const char *name ); - /***************************************************************** * TAG( rle_get_error ) * -- cgit 1.4.1