diff options
author | jasper <> | 2021-09-01 09:26:32 +0000 |
---|---|---|
committer | jasper <> | 2021-09-01 09:26:32 +0000 |
commit | 15410c1fb383e330324b13897f3703fcfde7969e (patch) | |
tree | 4d38bd9b948f5f7e3335e47a697a63593c1a8153 /src/regress/lib/libc/strlcat/strlcattest.c | |
parent | 414ce9bc403d88f0560f6570625d3116e7d18e5b (diff) | |
download | openbsd-15410c1fb383e330324b13897f3703fcfde7969e.tar.gz openbsd-15410c1fb383e330324b13897f3703fcfde7969e.tar.bz2 openbsd-15410c1fb383e330324b13897f3703fcfde7969e.zip |
remove manual fiddling with MALLOC_OPTIONS from libc regress tests
these options should be set globally (sysctl) when running regress as opposed to having
individual tests set it, barring a few specific exceptions.
ok bluhm@
Diffstat (limited to 'src/regress/lib/libc/strlcat/strlcattest.c')
-rw-r--r-- | src/regress/lib/libc/strlcat/strlcattest.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/regress/lib/libc/strlcat/strlcattest.c b/src/regress/lib/libc/strlcat/strlcattest.c index 86896ff987..00a9212eb5 100644 --- a/src/regress/lib/libc/strlcat/strlcattest.c +++ b/src/regress/lib/libc/strlcat/strlcattest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: strlcattest.c,v 1.3 2019/01/25 00:19:26 millert Exp $ */ | 1 | /* $OpenBSD: strlcattest.c,v 1.4 2021/09/01 09:26:32 jasper Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2014 Todd C. Miller <millert@openbsd.org> | 4 | * Copyright (c) 2014 Todd C. Miller <millert@openbsd.org> |
@@ -43,9 +43,6 @@ main(int argc, char *argv[]) | |||
43 | size_t len, bufsize; | 43 | size_t len, bufsize; |
44 | int failures = 0; | 44 | int failures = 0; |
45 | 45 | ||
46 | /* Enable malloc security options. */ | ||
47 | setenv("MALLOC_OPTIONS", "S", 0); | ||
48 | |||
49 | bufsize = getpagesize(); /* trigger guard pages easily */ | 46 | bufsize = getpagesize(); /* trigger guard pages easily */ |
50 | buf = malloc(bufsize); | 47 | buf = malloc(bufsize); |
51 | if (buf == NULL) { | 48 | if (buf == NULL) { |