HomeFreeBSD

MFC 365278: Don't assume objects in program sections have a size of a pointer.

Description

MFC 365278: Don't assume objects in program sections have a size of a pointer.

The size of the object at 'addr' is unknown and might be smaller than
the size of a pointer (e.g. some x86 instructions are smaller than a
pointer). Instead, just check that the address is in the bounds of
the program header.

Details

Provenance
jhbAuthored on
Parents
rS366093: tests: move the memfd tests over to sys/posixshm
Branches
Unknown
Tags
Unknown