diff options
| author | jasper <> | 2021-09-01 09:26:32 +0000 |
|---|---|---|
| committer | jasper <> | 2021-09-01 09:26:32 +0000 |
| commit | d3eec145a806d78debe86cb86f40c4c3c2402d6f (patch) | |
| tree | 4d38bd9b948f5f7e3335e47a697a63593c1a8153 /src/regress/lib/libc/strchr/strchrtest.c | |
| parent | 58948ae23ded8c8d6308bb4043df68acb129f402 (diff) | |
| download | openbsd-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 '')
| -rw-r--r-- | src/regress/lib/libc/strchr/strchrtest.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/regress/lib/libc/strchr/strchrtest.c b/src/regress/lib/libc/strchr/strchrtest.c index 64d6120305..0be4c8df63 100644 --- a/src/regress/lib/libc/strchr/strchrtest.c +++ b/src/regress/lib/libc/strchr/strchrtest.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: strchrtest.c,v 1.1 2021/07/24 05:45:49 visa Exp $ */ | 1 | /* $OpenBSD: strchrtest.c,v 1.2 2021/09/01 09:26:32 jasper Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 2021 Visa Hankala | 4 | * Copyright (c) 2021 Visa Hankala |
| @@ -28,9 +28,6 @@ main(void) | |||
| 28 | char *buf; | 28 | char *buf; |
| 29 | size_t bufsize; | 29 | size_t bufsize; |
| 30 | 30 | ||
| 31 | /* Enable malloc security options. */ | ||
| 32 | setenv("MALLOC_OPTIONS", "S", 0); | ||
| 33 | |||
| 34 | /* Allocate buffer with guard pages. */ | 31 | /* Allocate buffer with guard pages. */ |
| 35 | bufsize = getpagesize(); | 32 | bufsize = getpagesize(); |
| 36 | buf = malloc(bufsize); | 33 | buf = malloc(bufsize); |
