Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix misaligned access inside taskstats structure
Reported by UB sanitizer (alongside several other messages): linux/LinuxProcessList.c:782:25: runtime error: member access within misaligned address 0x614000000264 for type 'struct taskstats', which requires 8 byte alignment 0x614000000264: note: pointer points here 64 01 03 00 0a 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 4b c8 2e 00 00 00 00 00 3e 45 3c fd ^ The issue doesn't cause trouble on x86, but any architecture with stricter memory alignment requirements may inadvertedly break.
- Loading branch information