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@
-/* $OpenBSD: envtest.c,v 1.2 2019/01/25 00:19:26 millert Exp $ */
+/* $OpenBSD: envtest.c,v 1.3 2021/09/01 09:26:32 jasper Exp $ */
/*
* Copyright (c) 2010 Todd C. Miller <millert@openbsd.org>
int n, failures = 0;
size_t len, bufsize;
- /* Enable malloc security options. */
- setenv("MALLOC_OPTIONS", "S", 0);
-
fake_env();
n = count_instances("USER");
if (n != 2) {
-/* $OpenBSD: strchrtest.c,v 1.1 2021/07/24 05:45:49 visa Exp $ */
+/* $OpenBSD: strchrtest.c,v 1.2 2021/09/01 09:26:32 jasper Exp $ */
/*
* Copyright (c) 2021 Visa Hankala
char *buf;
size_t bufsize;
- /* Enable malloc security options. */
- setenv("MALLOC_OPTIONS", "S", 0);
-
/* Allocate buffer with guard pages. */
bufsize = getpagesize();
buf = malloc(bufsize);
-/* $OpenBSD: strlcattest.c,v 1.3 2019/01/25 00:19:26 millert Exp $ */
+/* $OpenBSD: strlcattest.c,v 1.4 2021/09/01 09:26:32 jasper Exp $ */
/*
* Copyright (c) 2014 Todd C. Miller <millert@openbsd.org>
size_t len, bufsize;
int failures = 0;
- /* Enable malloc security options. */
- setenv("MALLOC_OPTIONS", "S", 0);
-
bufsize = getpagesize(); /* trigger guard pages easily */
buf = malloc(bufsize);
if (buf == NULL) {
-/* $OpenBSD: strlcpytest.c,v 1.3 2019/01/25 00:19:26 millert Exp $ */
+/* $OpenBSD: strlcpytest.c,v 1.4 2021/09/01 09:26:32 jasper Exp $ */
/*
* Copyright (c) 2014 Todd C. Miller <millert@openbsd.org>
size_t len, bufsize;
int failures = 0;
- /* Enable malloc security options. */
- setenv("MALLOC_OPTIONS", "S", 0);
-
bufsize = getpagesize(); /* trigger guard pages easily */
buf = malloc(bufsize);
buf2 = malloc(bufsize);
-/* $OpenBSD: strnlentest.c,v 1.2 2019/01/25 00:19:26 millert Exp $ */
+/* $OpenBSD: strnlentest.c,v 1.3 2021/09/01 09:26:32 jasper Exp $ */
/*
* Copyright (c) 2010 Todd C. Miller <millert@openbsd.org>
int failures = 0;
size_t len, bufsize;
- /* Enable malloc security options. */
- setenv("MALLOC_OPTIONS", "S", 0);
-
bufsize = getpagesize(); /* trigger guard pages easily */
buf = malloc(bufsize);
if (buf == NULL) {