Test-memwipe is *supposed* to invoke undefined behavior, alas.
Closes 20066.
--- /dev/null
+ o Minor features (testing):
+ - Disable memory protections on OpenBSD when testing memwipe().
+ The test deliberately invokes undefined behaviour which the
+ protections interfere with. Patch from "rubiate". Closes ticket
+ 20066.
sum += (unsigned char)buf[i]; \
}
+#ifdef __OpenBSD__
+/* Disable some of OpenBSD's malloc protections for this test. This helps
+ * us do bad things, such as access freed buffers, without crashing. */
+const char *malloc_options="sufjj";
+#endif
+
static unsigned
fill_a_buffer_memset(void)
{