From 1cc6b74ab258b8f821521cb4f24d5f7aaed3da43 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 22 Apr 2020 00:51:30 +0000 Subject: Fix wild pointer when very small memory allocation fails git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3789 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- generator/ppmrough.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'generator') diff --git a/generator/ppmrough.c b/generator/ppmrough.c index e749c9c2..626ee989 100644 --- a/generator/ppmrough.c +++ b/generator/ppmrough.c @@ -47,7 +47,7 @@ parseCommandLine(int argc, const char ** argv, unsigned int option_def_index; - MALLOCARRAY(option_def, 100); + MALLOCARRAY_NOFAIL(option_def, 100); option_def_index = 0; /* incremented by OPTENTRY */ OPTENT3(0, "width", OPT_UINT, &cmdlineP->width, NULL, 0); -- cgit 1.4.1