John Baldwin 97bdc65f27 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.

Reported by:	CHERI (indirectly)
Reviewed by:	kib, brooks
Obtained from:	CheriBSD
MFC after:	1 week
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D26279
2020-09-02 20:43:08 +00:00
..
2019-12-28 02:11:41 +00:00
2020-04-30 22:08:40 +00:00
2018-10-20 22:39:35 +00:00
2020-04-30 22:08:40 +00:00
2017-12-08 17:52:53 +00:00
2019-09-02 01:55:55 +00:00
2020-03-19 06:33:06 +00:00
2020-04-30 22:08:40 +00:00
2020-04-30 22:08:40 +00:00
2020-09-01 16:20:42 +00:00
2020-07-19 23:56:19 +00:00
2019-12-11 17:37:53 +00:00