diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-08-09 03:06:48 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-08-09 03:06:48 +0000 |
commit | e6e30e94b1da12d0a3247db3b25311bafb8230e6 (patch) | |
tree | 546d163508fa3e3b4fa577e85c424357c2027c42 /urt/rle.h | |
parent | e281482f7522e2ccf8f4fad6f194f7ef7d77ef10 (diff) | |
download | netpbm-mirror-e6e30e94b1da12d0a3247db3b25311bafb8230e6.tar.gz netpbm-mirror-e6e30e94b1da12d0a3247db3b25311bafb8230e6.tar.xz netpbm-mirror-e6e30e94b1da12d0a3247db3b25311bafb8230e6.zip |
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
Diffstat (limited to 'urt/rle.h')
-rw-r--r-- | urt/rle.h | 17 |
1 files changed, 0 insertions, 17 deletions
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 ) * |