summaryrefslogtreecommitdiff
path: root/usr.bin/m4/extern.h
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2014-04-28 12:34:12 +0000
committerMarc Espie <espie@cvs.openbsd.org>2014-04-28 12:34:12 +0000
commitda038e42f29f93ce4594385799fb3bb63284fc25 (patch)
tree9077f6733495d5bb281e52a67b686092cf1ba095 /usr.bin/m4/extern.h
parent1c8303bede8d9e8b5bf12e70b7c655a62764afd2 (diff)
check for integer overflows in custom allocs, okay jca@
Diffstat (limited to 'usr.bin/m4/extern.h')
-rw-r--r--usr.bin/m4/extern.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/m4/extern.h b/usr.bin/m4/extern.h
index ef59ad7aee4..38a9635acc0 100644
--- a/usr.bin/m4/extern.h
+++ b/usr.bin/m4/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.52 2012/04/12 17:00:11 espie Exp $ */
+/* $OpenBSD: extern.h,v 1.53 2014/04/28 12:34:11 espie Exp $ */
/* $NetBSD: extern.h,v 1.3 1996/01/13 23:25:24 pk Exp $ */
/*-
@@ -102,8 +102,10 @@ extern void pbnumbase(int, int, int);
extern void pbunsigned(unsigned long);
extern void pbstr(const char *);
extern void pushback(int);
-extern void *xalloc(size_t, const char *fmt, ...);
-extern void *xrealloc(void *, size_t, const char *fmt, ...);
+extern void *xalloc(size_t, const char *, ...);
+extern void *xallocarray(size_t, size_t, const char *, ...);
+extern void *xrealloc(void *, size_t, const char *, ...);
+extern void *xreallocarray(void *, size_t, size_t, const char *, ...);
extern char *xstrdup(const char *);
extern void usage(void);
extern void resizedivs(int);