diff --git a/zendalloc_gofuzz.go b/zendalloc_gofuzz.go new file mode 100644 index 0000000000..e9267bcb97 --- /dev/null +++ b/zendalloc_gofuzz.go @@ -0,0 +1,10 @@ +//go:build gofuzz + +package frankenphp + +import "os" + +func init() { + // Zend's own arena allocator hides bugs from the sanitizers OSS-Fuzz builds with. + os.Setenv("USE_ZEND_ALLOC", "0") +}