History log of /openbsd-src/usr.bin/file/xmalloc.c (Results 1 – 4 of 4)
Revision Date Author Comments
# 7d5bbbe3 28-Jun-2019 deraadt <deraadt@openbsd.org>

asprintf returns -1, not an arbitrary value < 0. Also upon error the
(very sloppy specification) leaves an undefined value in *ret, so it is
wrong to inspect it, the error condition is enough.
discu

asprintf returns -1, not an arbitrary value < 0. Also upon error the
(very sloppy specification) leaves an undefined value in *ret, so it is
wrong to inspect it, the error condition is enough.
discussed a little with nicm, and then much more with millert until we
were exasperated

show more ...


# 6d42169e 17-Nov-2015 tobias <tobias@openbsd.org>

Merge xmalloc.[ch] files across base, skipping OpenSSH for now.

ok nicm


# 8b5c96da 17-Jun-2015 nicm <nicm@openbsd.org>

Use strdup in xstrdup from Fritjof Bornebusch. While here, remove xfree
which is unused.


# ff772f70 24-Apr-2015 nicm <nicm@openbsd.org>

New implementation of the file(1) utility. This is a simplified,
modernised version with a nearly complete magic(5) parser but omits some
of the complex builtin tests (notably ELF) and has a reduced

New implementation of the file(1) utility. This is a simplified,
modernised version with a nearly complete magic(5) parser but omits some
of the complex builtin tests (notably ELF) and has a reduced set of
options.

ok deraadt

show more ...