[openssh-commits] [openssh] branch master updated (6a948125 -> 74c1c366)
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Sep 27 07:48:19 AEST 2017
This is an automated email from the git hooks/post-receive script.
dtucker pushed a change to branch master
in repository openssh.
from 6a948125 upstream commit
new 74c1c366 Check for and handle calloc(p, 0) = NULL.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.
Detailed log of new commits:
commit 74c1c3660acf996d9dc329e819179418dc115f2c
Author: Darren Tucker <dtucker at zip.com.au>
Date: Wed Sep 27 07:44:41 2017 +1000
Check for and handle calloc(p, 0) = NULL.
On some platforms (AIX, maybe others) allocating zero bytes of memory
via the various *alloc functions returns NULL, which is permitted
by the standards. Autoconf has some macros for detecting this (with
the exception of calloc for some reason) so use these and if necessary
activate shims for them. ok djm@
Summary of changes:
configure.ac | 10 +++++++
openbsd-compat/Makefile.in | 2 +-
openbsd-compat/{strnlen.c => bsd-malloc.c} | 46 +++++++++++++++++++++---------
3 files changed, 43 insertions(+), 15 deletions(-)
copy openbsd-compat/{strnlen.c => bsd-malloc.c} (57%)
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list