malloc: simplify nasm_malloc code, add nasm_strcatn()
commit740ec3572bb4a587a287cdcea201f12fa5f00501
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 30 May 2018 18:40:42 +0000 (30 11:40 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 30 May 2018 18:40:42 +0000 (30 11:40 -0700)
treefb7ce904917389d2ddfd8ed7a31c28f7c2490781
parent1ce81e10effa327362e8cdd316f6ea57c8324ce0
malloc: simplify nasm_malloc code, add nasm_strcatn()

Simplify the nasm_malloc() code by moving the pointer check into a
common subroutine.

We can now issue a filename error even for failures like malloc().

Add support for the gcc sentinel attribute (verify that a list ends
with NULL).

Add a handful of safe_alloc attributes.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
aclocal.m4
configure.ac
include/compiler.h
include/nasmlib.h
nasmlib/malloc.c