summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJames O'Doherty <james@theodohertyfamily.com>2026-05-22 10:46:02 -0400
committerJames O'Doherty <james@theodohertyfamily.com>2026-05-22 10:46:02 -0400
commit9131b0004e7c640cc028179e1d049a4c62210d94 (patch)
tree7efb5612b61240105851cb5d8ac8f05263644db4 /Makefile
parent401683a6b11e5a7810c949147a12f2c4bbfba48a (diff)
Security hardening: prevent shell injection and null-byte crashes, implement 8-bit clean argument fuzzing and portable E2E binary discovery
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0ef54dd..1982545 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,11 @@ LAUNCHER_SRC = internal/namespace/launcher_src/launcher.c
LAUNCHER_BIN = internal/namespace/launcher.bin
BINARY = wg-wrap
-.PHONY: all clean test
+# Fuzzing settings
+FUZZ_PARALLEL ?= 2
+FUZZ_TIME ?= 30s
+
+.PHONY: all clean test fuzz
# Default target: build the final binary
all: $(BINARY)
@@ -30,3 +34,7 @@ test: all
clean:
rm -f $(BINARY) $(LAUNCHER_BIN)
find . -name "*.test" -delete
+
+# Run fuzzing tests
+fuzz: all
+ go test -v -fuzz=FuzzArgumentIntegrity -parallel $(FUZZ_PARALLEL) -fuzztime=$(FUZZ_TIME) ./tests/e2e/fuzz_args_test.go