Commit graph

992 commits

Author SHA1 Message Date
Andrea Mazzoleni
96a6b6413b Fix build in different directory 2026-07-29 16:49:04 +02:00
Andrea Mazzoleni
9f801603cd Defer deallocation of modified files to phase 2 to prevent copy-detection races 2026-07-29 16:49:04 +02:00
Andrea Mazzoleni
c7a2e0ecaf Block signal delivery across fork to prevent signal forwarding race condition in main.c 2026-07-29 16:49:04 +02:00
Andrea Mazzoleni
49ab661b82 Cap maximum rate-limiter credit accumulation to 10 seconds to prevent huge post-pause bursts 2026-07-29 16:49:04 +02:00
Andrea Mazzoleni
c630eec8b7 Use eaccess instead of access in unixapp.c for consistent effective privilege checking 2026-07-29 16:49:04 +02:00
Andrea Mazzoleni
e9e642d272 Validate WMI-returned VSS snapshot GUID format in mingwapp.c to mitigate potential command injection 2026-07-29 16:49:04 +02:00
Andrea Mazzoleni
096233d0e6 Fix wide-character buffer size parameters in mingwapp.c snwprintf calls to prevent stack buffer overflow 2026-07-29 16:49:04 +02:00
Andrea Mazzoleni
08b2c3ac75 Abort execution with a fatal error if smartctl options exceed maximum argument limit 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
d241b1b3b6 Document the concurrency boundaries of worker threads 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
c68654782f Move string functions to new str.h and str.c files 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
c4a3b0b094 Move safe memory helper functions to dedicated memory.c and memory.h 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
4626e863ff Fail if the PowerShell command is too long 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
d2a41a5711 Fix documentation of windows_guid_is_valid 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
a08bd8a7b8 Document handle_close failures 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
82745d27f9 Fix typo in monothread implementation 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
6870c4ab17 Fix leak on error in state_write 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
f3eb28fdae Fix leak on error in argutf8 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
25963f6a74 Avoid floating point underflow in thermal computation 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
2a1c67c5fd Introduce nalloc_nofail 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
db6f8df3e5 Fix strtrim to correctly trim strings containing only whitespace 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
c5a093d1d0 Prevent integer wrap-around when checking string length in sgetbs 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
65a7aa9bcb Run PowerShell commands safely via base64 encoded strings 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
204eec0029 Pass element count instead of byte count to WCHAR buffer bounds 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
ae98176236 Synchronize child_process updates using interlocked Win32 APIs 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
7afa3f75d6 Avoid 100% CPU utlization in thread_yield 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
3a54bc5cf5 Document why thread_yield is used 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
551d660913 Allocate minimum 1 byte in malloc_nofail when size is 0 to prevent process abort 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
8c101ffd01 Use sig_atomic_t 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
01bfd70e6a Clarify comment about reading uuids 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
53a12e9986 Align data disk UUID validation and write logic with parity splits using content_uuid 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
784fc7bf1f Optimize redundant devuuid() calls by storing content file UUIDs in a dedicated field 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
4c74b3d7c1 Add support for specifying case-insensitive SMART attribute names in the smartignore option 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
d3be81691b Avoid some hardcoded string sizes 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
c20b1d5762 Merge the CLI and Daemon portable interface 2026-07-29 16:49:01 +02:00
Andrea Mazzoleni
c0b7900f4c Fail Btrfs device listing if an unexpeced error happens 2026-07-29 16:46:28 +02:00
Andrea Mazzoleni
e010c8e88c Fix file descriptor leak in os_spawn by enabling O_CLOEXEC for compiled binaries 2026-07-29 16:46:28 +02:00
Andrea Mazzoleni
b9d181d9cb Add support for custom smartctl info options using a [info: ...] tag 2026-07-29 16:46:28 +02:00
Andrea Mazzoleni
7c9473027c Skip spinup and spindown for non-rotational devices 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
d11c872fb6 Refactor portable support 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
60daeb6dfa Allow tools to be symlinks and hardlinks 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
130aaddbd0 Rename randomize to os_randomize 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
ca0f3545bf More CPU info 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
e7c85a1af3 Add CRC support for macOS 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
0f4630377c In the speed test, set the CPU affinity to the expected best core 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
c2827dcfed Run the speed test with and without displacement 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
a457795e7c Allow to specify the wrap size in allocation 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
677aa0cc90 Add AArch64 NEON parity generation and recovery functions 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
3d7316e7f8 Further conversions from 32 to 64 bits 2026-07-29 16:46:26 +02:00
Andrea Mazzoleni
022f63846a Migrate block_off_t to 64-bit with updated CLI parsing, VLQ serialization, and format specifiers 2026-07-29 16:45:31 +02:00
Andrea Mazzoleni
62f791886e Remove the unused number of data disks from the vector allocation
The same addressing rules are applied to the parity disks because
they are used as data disks during recovery operations.
2026-07-29 16:45:31 +02:00