diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-02-28 18:05:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-02-28 18:05:52 +0000 |
commit | c4ab57aad282b1af1cfaea168eba167c9265c587 (patch) | |
tree | 0b2f4bad1ef790abf5fdd09a6632393fd4ed9524 /lib/csu/common.h | |
parent | 1e988d2ffc39487d5063a70a1f09e5c4bdad7918 (diff) |
copy basename of argv[0] to bss for __progname, so that large stack smash
does not make propolice reporting ineffective; millert miod ok
Diffstat (limited to 'lib/csu/common.h')
-rw-r--r-- | lib/csu/common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/csu/common.h b/lib/csu/common.h index 596b7cff5e7..23d51f377a7 100644 --- a/lib/csu/common.h +++ b/lib/csu/common.h @@ -1,4 +1,4 @@ -/* $OpenBSD: common.h,v 1.6 2002/09/17 21:16:01 deraadt Exp $ */ +/* $OpenBSD: common.h,v 1.7 2003/02/28 18:05:48 deraadt Exp $ */ /* $NetBSD: common.h,v 1.3 1995/06/15 21:41:48 pk Exp $ */ /* @@ -33,6 +33,7 @@ */ #include <string.h> +#include <limits.h> #ifdef DYNAMIC @@ -92,6 +93,7 @@ char **environ; int errno; static char empty[1]; char *__progname = empty; +char __progname_storage[NAME_MAX+1]; #ifndef DYNAMIC #define _strrchr strrchr #endif |