Protect against the directory traversal in mg_upload()

This commit is contained in:
Sergey Lyubka committed 2022-01-17 12:08:23 +00:00
1 parent b484123f1b
commit c65c8fdaaa
4 files changed
+72 -58

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ fuzz: fuzzer
$(RUN) ./fuzzer
# make CC=/usr/local/opt/llvm\@8/bin/clang ASAN_OPTIONS=detect_leaks=1
test: CFLAGS += -DMG_ENABLE_IPV6=$(IPV6) -fsanitize=address#,undefined
test: CFLAGS += -DMG_ENABLE_IPV6=$(IPV6) -fsanitize=address,undefined
test: mongoose.h Makefile $(SRCS)
$(CC) $(SRCS) $(CFLAGS) -coverage $(LDFLAGS) -g -o unit_test
ASAN_OPTIONS=$(ASAN_OPTIONS) $(RUN) ./unit_test