Add hardening flags (NOHARDENING=1 to disable them) and fix Windows stringop-overflow

This commit is contained in:
Philippe Teuwen committed 2026-02-28 16:22:44 +01:00
1 parent 0e5ca3a796
commit f9cfda9a72
3 files changed
+78 -43

No files matched your search

+1 -4
View File
@@ -239,10 +239,7 @@ static int execute_system_command(const char *command) {
#if defined(_WIN32)
char wrapped_command[255];
strncat(wrapped_command, "cmd /C \"", 9);
strncat(wrapped_command, command, strlen(command));
strncat(wrapped_command, "\"", 2);
snprintf(wrapped_command, sizeof(wrapped_command), "cmd /C \"%s\"", command);
ret = system(wrapped_command);
#else
ret = system(command);