diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2014-06-21 08:00:24 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2014-06-21 08:00:24 +0000 |
commit | 029bd623b840ee0c0ca16b03d9a1ee177cdd31e9 (patch) | |
tree | adcd53bff97a1881f29c5f29d7f1fe74acce03b8 /libexec/ld.so/util.h | |
parent | d03a8d539ef55e2af53ca76005a541a0b2fdd808 (diff) |
Move to a non-zeroing _dl_malloc, a _dl_calloc and _dl_reallocarry and
fix _dl_strdup to return NULL instead of crash; ok deraadt@
Diffstat (limited to 'libexec/ld.so/util.h')
-rw-r--r-- | libexec/ld.so/util.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libexec/ld.so/util.h b/libexec/ld.so/util.h index 945e34de57c..584617a793c 100644 --- a/libexec/ld.so/util.h +++ b/libexec/ld.so/util.h @@ -1,4 +1,4 @@ -/* $OpenBSD: util.h,v 1.25 2014/01/23 01:07:45 deraadt Exp $ */ +/* $OpenBSD: util.h,v 1.26 2014/06/21 08:00:23 otto Exp $ */ /* * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> @@ -34,7 +34,10 @@ #include <sys/utsname.h> #include <stdarg.h> -void *_dl_malloc(const size_t size); +void *_dl_malloc(size_t size); +void *_dl_calloc(size_t nmemb, const size_t size); +void *_dl_realloc(void *, size_t size); +void *_dl_reallocarray(void *, size_t nmemb, size_t size); void _dl_free(void *); char *_dl_strdup(const char *); size_t _dl_strlen(const char *); |