[Nasm-bugs] [Bug 3392597] New: alloc functions: make sure non-NULL returns with zero size parameters.
noreply-nasm at gorcunov.org
noreply-nasm at gorcunov.org
Fri Aug 9 23:32:07 PDT 2019
https://bugzilla.nasm.us/show_bug.cgi?id=3392597
Bug ID: 3392597
Summary: alloc functions: make sure non-NULL returns with zero
size parameters.
Product: NASM
Version: unspecified
Hardware: All
OS: All
Status: OPEN
Severity: normal
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: sezeroz at gmail.com
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: Build from git using other Makefile
Created attachment 411732
--> https://bugzilla.nasm.us/attachment.cgi?id=411732&action=edit
nasm_malloc zero size patch
It is legal that malloc(0) to return NULL. E.g. malloc() from
watcom does just that, and it happens with the macho backend
(didn't trace exactly where from.)
While we are the, fixes the misleading flip in nasm_calloc parameter names.
--
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
More information about the Nasm-bugs
mailing list