Commit graph

2360 commits

Author SHA1 Message Date
Andrea Mazzoleni
5da9b81d58 Add new os_kill
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-07-28 23:27:12 +02:00
Andrea Mazzoleni
18f5f99cad Add CREATE_NO_WINDOW flag to process creation in os_spawn 2026-07-28 22:43:53 +02:00
Andrea Mazzoleni
c41ac8bfba Create symlinks to host binaries on Wine targets to run test commands natively
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
2bccf80676 Fix build in different directory 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
7df42985c7 Defer deallocation of modified files to phase 2 to prevent copy-detection races 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
7a58a86901 Block signal delivery across fork to prevent signal forwarding race condition in main.c 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
1e14c7dbdc Cap maximum rate-limiter credit accumulation to 10 seconds to prevent huge post-pause bursts 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
b88464c08e Use eaccess instead of access in unixapp.c for consistent effective privilege checking 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
fcb9b1f8c4 Validate WMI-returned VSS snapshot GUID format in mingwapp.c to mitigate potential command injection 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
164897580f Fix wide-character buffer size parameters in mingwapp.c snwprintf calls to prevent stack buffer overflow 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
0bff66915a Abort execution with a fatal error if smartctl options exceed maximum argument limit 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
23829e0899 Update TODO 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
27c7c5c6bd Document the concurrency boundaries of worker threads 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
12196fe704 Move string functions to new str.h and str.c files 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
66c4a6bf28 Move safe memory helper functions to dedicated memory.c and memory.h 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
58869e3768 Update HISTORY 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
7a6e44aff3 Update TODO 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
761e2ef25e Make os_abort to log to os_syslog 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
4aef95f350 Fail if the PowerShell command is too long 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
9fcbf49a2b Fix documentation of windows_guid_is_valid 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
b4d370e9ed Document handle_close failures 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
e2740e2a66 Fix typo in monothread implementation 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
1539a57f93 Fix leak on error in state_write 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
ebea76c8ed Fix leak on error in argutf8 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
42632f5d45 Avoid floating point underflow in thermal computation 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
0e48c2e3ab Introduce nalloc_nofail 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
ac94cff7f7 Fix strtrim to correctly trim strings containing only whitespace 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
bad5d68c7a Prevent integer wrap-around when checking string length in sgetbs 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
8add1ea48f Sanitize addr2line binary path via strspn whitelist before system call 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
78c26f1b19 Sync the OS interface with the daemon 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
98caef576f Run PowerShell commands safely via base64 encoded strings 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
8b5d17b073 Pass element count instead of byte count to WCHAR buffer bounds 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
c2d7b043ee Synchronize child_process updates using interlocked Win32 APIs 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
02276ba5a6 Avoid 100% CPU utlization in thread_yield 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
cd044f6e21 Document why thread_yield is used 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
5a8a851a70 Abort on privilege switch failures unless errno is EPERM 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
8b457a4338 Allocate minimum 1 byte in malloc_nofail when size is 0 to prevent process abort 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
7cdfbea192 Use sig_atomic_t 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
e9a746e074 Clarify comment about reading uuids 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
7db8e03c35 Align data disk UUID validation and write logic with parity splits using content_uuid 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
fd1c00f07f Optimize redundant devuuid() calls by storing content file UUIDs in a dedicated field 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
fbd84e81c4 Update TODO 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
6ea0b1752a Fix translation inconsistencies 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
6dadd62394 Add support for specifying case-insensitive SMART attribute names in the smartignore option 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
53c844ab77 Avoid some hardcoded string sizes 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
a2813dd19f Merge the CLI and Daemon portable interface 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
5ed1d7e010 Avoid a folding VLA warning in clang 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
a4055deda6 Fix translation inconsistencies 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
72efb9079b Add Translation section to manual translations 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
00441693d6 New target make doc 2026-07-19 18:23:44 +02:00