HomeFreeBSD

acpidump: do not use pointer arithmetic to check for overflow

Description

acpidump: do not use pointer arithmetic to check for overflow

Pointer arithmetic overflow is UB. Convert to unsigned uintptr_t and do
the check there.

PR: 204945
Reported by: David Binderman <dcb314@hotmail.com>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on Feb 26 2025, 5:24 AM
Parents
rG2c44f1ff6935: LinuxKPI: 802.11: compile in VHT compat code by default
Branches
Unknown
Tags
Unknown