mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-05 16:51:27 +08:00
5bb35772b3
malloc(0) can legitimately return NULL; it does on some systems and not others. Force the size to 1 byte if the size is 0 coming in, except for realloc() where this is legitimate and equivalent to free(). Since this is an abnormal case, and can't even happen with most C libraries, handle it on the error path, after we already got back a NULL pointer. Reported-by: Ozkan Sezer <sezeroz@gmail.com> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com> |
||
---|---|---|
asm | ||
autoconf | ||
common | ||
config | ||
contrib | ||
disasm | ||
doc | ||
headers | ||
include | ||
macros | ||
misc | ||
Mkfiles | ||
nasmlib | ||
nsis | ||
output | ||
perllib | ||
rdoff | ||
stdlib | ||
test | ||
tools | ||
travis | ||
x86 | ||
.gitignore | ||
.travis.yml | ||
AUTHORS | ||
autogen.sh | ||
ChangeLog | ||
CHANGES | ||
configure.ac | ||
INSTALL | ||
LICENSE | ||
Makefile.in | ||
nasm.spec.in | ||
nasm.spec.sed | ||
nasm.txt | ||
ndisasm.txt | ||
README.md | ||
SubmittingPatches | ||
version | ||
version.pl |
NASM, the Netwide Assembler
Many many developers all over the net respect NASM for what it is: a widespread (thus netwide), portable (thus netwide!), very flexible and mature assembler tool with support for many output formats (thus netwide!!).
Now we have good news for you: NASM is licensed under the "simplified" (2-clause) BSD license. This means its development is open to even wider society of programmers wishing to improve their lovely assembler.
Visit our nasm.us website for more details. We are gradually moving services away from Sourceforge. For our remaining Sourceforge services see here.
With best regards, the NASM crew.