From 194ccf37c539c54a6286ea3b852ede8f2405cfcd Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 29 Aug 2018 01:48:31 +0000 Subject: fix null pointer dereference git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3309 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- generator/pamtris/triangle.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'generator') diff --git a/generator/pamtris/triangle.c b/generator/pamtris/triangle.c index 1190e760..adc53c79 100644 --- a/generator/pamtris/triangle.c +++ b/generator/pamtris/triangle.c @@ -70,10 +70,10 @@ draw_partial_triangle( int32_t * attribs_end; fract * attribs_steps; - MALLOCARRAY(attribs_start, num_planes); - MALLOCARRAY(attribs_begin, num_planes); - MALLOCARRAY(attribs_end, num_planes); - MALLOCARRAY(attribs_steps, num_planes); + MALLOCARRAY_NOFAIL(attribs_start, num_planes); + MALLOCARRAY_NOFAIL(attribs_begin, num_planes); + MALLOCARRAY_NOFAIL(attribs_end, num_planes); + MALLOCARRAY_NOFAIL(attribs_steps, num_planes); start_column = left_boundary; /* initial value */ span_length = column_delta; /* initial value */ -- cgit 1.4.1