summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/strnlen/strnlentest.c
diff options
context:
space:
mode:
authorjasper <>2021-09-01 09:26:32 +0000
committerjasper <>2021-09-01 09:26:32 +0000
commitd3eec145a806d78debe86cb86f40c4c3c2402d6f (patch)
tree4d38bd9b948f5f7e3335e47a697a63593c1a8153 /src/regress/lib/libc/strnlen/strnlentest.c
parent58948ae23ded8c8d6308bb4043df68acb129f402 (diff)
downloadopenbsd-d3eec145a806d78debe86cb86f40c4c3c2402d6f.tar.gz
openbsd-d3eec145a806d78debe86cb86f40c4c3c2402d6f.tar.bz2
openbsd-d3eec145a806d78debe86cb86f40c4c3c2402d6f.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/strnlen/strnlentest.c')
-rw-r--r--src/regress/lib/libc/strnlen/strnlentest.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/regress/lib/libc/strnlen/strnlentest.c b/src/regress/lib/libc/strnlen/strnlentest.c
index 045b258bf1..78f8cfb252 100644
--- a/src/regress/lib/libc/strnlen/strnlentest.c
+++ b/src/regress/lib/libc/strnlen/strnlentest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strnlentest.c,v 1.2 2019/01/25 00:19:26 millert Exp $ */ 1/* $OpenBSD: strnlentest.c,v 1.3 2021/09/01 09:26:32 jasper Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2010 Todd C. Miller <millert@openbsd.org> 4 * Copyright (c) 2010 Todd C. Miller <millert@openbsd.org>
@@ -29,9 +29,6 @@ int main(int argc, char *argv[])
29 int failures = 0; 29 int failures = 0;
30 size_t len, bufsize; 30 size_t len, bufsize;
31 31
32 /* Enable malloc security options. */
33 setenv("MALLOC_OPTIONS", "S", 0);
34
35 bufsize = getpagesize(); /* trigger guard pages easily */ 32 bufsize = getpagesize(); /* trigger guard pages easily */
36 buf = malloc(bufsize); 33 buf = malloc(bufsize);
37 if (buf == NULL) { 34 if (buf == NULL) {