summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-04-03Modernize code by removing use of old style definitions.Flavio Cruz
Also add -Werror=old-style-definition to enforce new code. Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
2023-02-27libstore: Fix zero store size computationSamuel Thibault
56d065041793 ("libstore: Fix undefined behavior") missed letting the sign bit be 0, thus leading to a negative store size, and thus /dev/zero would reject any read/write.
2023-02-23pfinet: Fix shifting left into bit 31Samuel Thibault
2023-02-19pfinet: Align packetsSamuel Thibault
The Ethernet header is 14 bytes long, and thus leads to IP header misalignment. This uses skb_reserve to introduce 2 bytes of padding to realign IP headers.
2023-02-16mach-defpager: Add defpager_server_namev0.9.git20230216Samuel Thibault
To allow e.g. libubsan to detect it should be extra cautious.
2023-02-16mach-defpager: Fix crash on pthread_cond_broadcastSamuel Thibault
We need to keep ds locked, otherwise it might disappear before we have a chance to broadcast the condition.
2023-02-15nfs: Fix shifting leftSamuel Thibault
Shifting signed 0xffffffff 32 bit left is undefined behavior. Cast to unsigned to make it defined behavior.
2023-02-15Fix accessing bit 31Samuel Thibault
Shifting (signed) 1 to left 31 positions is undefined behavior. So make this an unsigned so it becomes defined behavior.
2023-02-10libstore: Fix undefined behaviorSamuel Thibault
store_offset_t is a signed type, so 1 << (bits-1) overflows.
2023-02-03procfs: Actually add padding to align struct direntSamuel Thibault
d21b09b32895 was computing the amount and filling it, but not actually enforcing it.
2023-02-02Avoid variable length array with size zeroSamuel Thibault
2023-02-02Avoid unaligned memory accessesSamuel Thibault
2023-02-02Avoid undefined-behaviorSamuel Thibault
1 << 31 is undefined behavior, 1 needs to be made unsigned for << 31 to be defined behavior.
2023-02-02procfs: Add padding to align struct direntSamuel Thibault
2023-02-02ext2fs: use __alignof (struct dirent) instead of hardcoding 4Samuel Thibault
2023-02-02Avoid passing NULL to memcpySamuel Thibault
2023-01-31Add --without-libtirpcSamuel Thibault
To facilitate cross-build without tinkering with pkg-config.
2023-01-19Fix some compiler warningsSvante Signell
2023-01-18Fix compiler warningSvante Signell
2023-01-02libtrivfs: Avoid passing uninitialized seconds fieldSamuel Thibault
Even if microseconds being -1 is enough, better not leak uninitialized values.
2023-01-02fsys_get_children: Fix double-free on errorSamuel Thibault
2023-01-02boot: Fix erroneous munmap in S_io_read on errorSamuel Thibault
2023-01-02fsys_get_children: Fix comparing stringsSamuel Thibault
2023-01-02fsys_get_children: Fix memleak on errorSamuel Thibault
2023-01-01procfs: Fix checking underrunSamuel Thibault
2023-01-01mach-defpager: Fix computing free spaceSamuel Thibault
2023-01-01utils: Fix calling multi-line macroSamuel Thibault
2023-01-01console: Fix checking negative cursor coordinatesSamuel Thibault
2023-01-01vmstat: Support 64bit memory sizeSamuel Thibault
2023-01-01settrans: Fix checking len being negativeSamuel Thibault
2023-01-01console-client: Fix erroneous allocation checkSamuel Thibault
2023-01-01pids: Fix pointer arithmeticSamuel Thibault
2023-01-01Fix accessing cred before checking it is non-NULLSamuel Thibault
2023-01-01libnetfs: Fix dereferencing NULL on memory shortageSamuel Thibault
2023-01-01pflocal: Fix unsafe increment of refsSamuel Thibault
2023-01-01Do not ignore value returned by get_privileged_portsSamuel Thibault
2023-01-01libnetfs: do not ignore errors from netfs_validate_statSamuel Thibault
2023-01-01libdiskfs: white-list fall-through in switchSamuel Thibault
2023-01-01procfs: Avoid fclosing NULL on memory shortageSamuel Thibault
2023-01-01libfshelp-tests: Fix out-of-bound accessSamuel Thibault
2023-01-01pfinet: Fix using uninitialized valueSamuel Thibault
2023-01-01nonsugid: Fix memleakSamuel Thibault
2023-01-01trans: Drop spurious derefSamuel Thibault
That was a remnant of manual port lookup.
2023-01-01pflocal: Avoid setting sock fields on errorSamuel Thibault
2023-01-01console: Avoid setting pointer on errorSamuel Thibault
2023-01-01console-client: Fix erroneous free on errorSamuel Thibault
2023-01-01libpager: Fix memleak on errorSamuel Thibault
2023-01-01_merge_implied_gids: Fix memleak on errorSamuel Thibault
2023-01-01libtrivfs: Fix memleak on errorSamuel Thibault
2023-01-01fstab: Fix memleak on errorSamuel Thibault