[Midnightbsd-cvs] [MidnightBSD/src] fc0044: sys: Disable -Walloc-size-larger-than for GCC 9+
Lucas Holt
noreply at github.com
Sun Dec 1 14:03:40 EST 2024
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/src
Commit: fc004417a505446eb6ac09beabf76a3c2974034b
https://github.com/MidnightBSD/src/commit/fc004417a505446eb6ac09beabf76a3c2974034b
Author: Lucas Holt <luke at foolishgames.com>
Date: 2024-12-01 (Sun, 01 Dec 2024)
Changed paths:
M sys/conf/kern.mk
Log Message:
-----------
sys: Disable -Walloc-size-larger-than for GCC 9+
By default this warns about sizes larger than PTRDIFF_MAX passed to
malloc (rather than SIZE_MAX). This doesn't trigger
deterministically, but it does trigger for kmalloc() of struct_size()
in iwlwifi's iwl_configure_rxq even when struct_size() is changed to
use PTRDIFF_MAX. NB: struct_size() in Linux caps the size at
SIZE_MAX, not PTRDIFF_MAX via size_mul().
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications
More information about the Midnightbsd-cvs
mailing list