diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-08-29 01:48:31 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-08-29 01:48:31 +0000 |
commit | 194ccf37c539c54a6286ea3b852ede8f2405cfcd (patch) | |
tree | 21354e24b48ae21d59863107c1481059b9f120c4 /generator/pamtris | |
parent | 8d1f33da3b147d1f3c5e769fa902d9a79577baca (diff) | |
download | netpbm-mirror-194ccf37c539c54a6286ea3b852ede8f2405cfcd.tar.gz netpbm-mirror-194ccf37c539c54a6286ea3b852ede8f2405cfcd.tar.xz netpbm-mirror-194ccf37c539c54a6286ea3b852ede8f2405cfcd.zip |
fix null pointer dereference
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3309 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'generator/pamtris')
-rw-r--r-- | generator/pamtris/triangle.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 */ |