Commit graph

2379 commits

Author SHA1 Message Date
Andrea Mazzoleni
1c1bfd0dfa Return error in devdereference_bcachefs if no devices are found 2026-08-06 23:09:28 +02:00
Andrea Mazzoleni
81cdcf9b22 Free devlist allocations on error in devdereference_btrfs 2026-08-06 23:02:38 +02:00
Andrea Mazzoleni
ca4bcaa50a Fallback to rotational in devpower if sysfs attribute is unknown 2026-08-06 22:57:40 +02:00
Andrea Mazzoleni
c73d86d6d7 Document dummy register clobbers in raid_sse_end and raid_neon_end 2026-08-06 22:46:54 +02:00
Andrea Mazzoleni
bf2a8b63c5 Replace VLA envp_dynamic with malloc in fork child exec path
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-08-05 22:24:28 +02:00
Andrea Mazzoleni
50f9742560 Add comments explaining Windows Service console attachment flow in os_term 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
3f515ab6e7 Comment about process resource in os_term/os_kill on Windows 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
53194c4183 Add fallback to kill(pid, sig) when process group signaling returns ESRCH in os_term and os_kill 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
079aa52be5 Configure PR_SET_PDEATHSIG on Linux and Job Objects on Windows to prevent orphaned subprocesses on program crash 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
ec46bafc3b Support filesystems with invalid inode numbers on individual files 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
1f496e61c6 Silence clang static analyzer warnings 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
3c3aedadef Add bounded retry with exponential backoff for ERROR_NO_SYSTEM_RESOURCES 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
7ccb243a79 Fix binary varint decoders to reject values overflowing uint32_t/uint64_t declared widths 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
acacfc1fbc Validate the product/model returned by the Windows driver 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
cfec991750 Update to the new RAID library 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
58a1bd5adb Support dynamic runtime selection of RAID AES mode 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
8d1aabdb6b Add new os_kill 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
ac5191dafe Add CREATE_NO_WINDOW flag to process creation in os_spawn 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
b644311e2a Create symlinks to host binaries on Wine targets to run test commands natively 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
ddc35a473e Fix build in different directory 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
1d988d5149 Defer deallocation of modified files to phase 2 to prevent copy-detection races 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
93677b3604 Block signal delivery across fork to prevent signal forwarding race condition in main.c 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
6bc4a5b469 Cap maximum rate-limiter credit accumulation to 10 seconds to prevent huge post-pause bursts 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
d90f1bc73c Use eaccess instead of access in unixapp.c for consistent effective privilege checking 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
db27f875f3 Validate WMI-returned VSS snapshot GUID format in mingwapp.c to mitigate potential command injection 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
01b6cb8fea Fix wide-character buffer size parameters in mingwapp.c snwprintf calls to prevent stack buffer overflow 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
f9e797c0ea Abort execution with a fatal error if smartctl options exceed maximum argument limit 2026-08-05 21:05:34 +02:00
Andrea Mazzoleni
2c4ead0300 Update TODO 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
ddcae8cabb Document the concurrency boundaries of worker threads 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
1ffc9d7400 Move string functions to new str.h and str.c files 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
084d3faa1e Move safe memory helper functions to dedicated memory.c and memory.h 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
7b431d454c Update HISTORY 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
693bba243f Update TODO 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
f20fa3ebc8 Make os_abort to log to os_syslog 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
7b1b75a12a Fail if the PowerShell command is too long 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
e4efe9007b Fix documentation of windows_guid_is_valid 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
a12f5d8018 Document handle_close failures 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
e0cc53a2e3 Fix typo in monothread implementation 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
15be2a4017 Fix leak on error in state_write 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
c85265a809 Fix leak on error in argutf8 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
39380487e9 Avoid floating point underflow in thermal computation 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
db3f5af65a Introduce nalloc_nofail 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
b297cbfa9b Fix strtrim to correctly trim strings containing only whitespace 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
1ec42c1a73 Prevent integer wrap-around when checking string length in sgetbs 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
dbf83a0e84 Sanitize addr2line binary path via strspn whitelist before system call 2026-08-05 21:05:33 +02:00
Andrea Mazzoleni
523f8c4a77 Sync the OS interface with the daemon 2026-08-05 20:55:49 +02:00
Andrea Mazzoleni
959128ed5d Run PowerShell commands safely via base64 encoded strings 2026-08-05 20:54:28 +02:00
Andrea Mazzoleni
55973292e9 Pass element count instead of byte count to WCHAR buffer bounds 2026-08-05 20:54:28 +02:00
Andrea Mazzoleni
1a9f699dbf Synchronize child_process updates using interlocked Win32 APIs 2026-08-05 20:54:28 +02:00
Andrea Mazzoleni
a45cf526c8 Avoid 100% CPU utlization in thread_yield 2026-08-05 20:54:28 +02:00