cem 2c9ae2323b mallocarray(9): panic if the requested allocation would overflow
Additionally, move the overflow check logic out to WOULD_OVERFLOW() for
consumers to have a common means of testing for overflowing allocations.
WOULD_OVERFLOW() should be a secondary check -- on 64-bit platforms, just
because an allocation won't overflow size_t does not mean it is a sane size
to request.  Callers should be imposing reasonable allocation limits far,
far, below overflow.

Discussed with:	emaste, jhb, kp
Sponsored by:	Dell EMC Isilon
2018-01-10 21:49:45 +00:00
..
2017-02-28 23:42:47 +00:00
2017-12-13 16:13:17 +00:00
2017-12-05 20:19:13 +00:00
2017-12-28 14:26:33 +00:00
2017-12-13 16:13:17 +00:00
2018-01-08 21:27:41 +00:00
2018-01-08 21:27:41 +00:00
2017-12-31 16:48:04 +00:00
2017-11-30 20:33:45 +00:00
2017-12-13 16:13:17 +00:00
2017-12-19 17:59:00 +00:00
2018-01-08 21:27:41 +00:00
2017-12-13 16:13:17 +00:00
2017-12-13 16:13:17 +00:00
2017-12-13 16:30:39 +00:00
2017-12-13 16:30:39 +00:00
2016-05-03 15:14:17 +00:00
2017-12-13 16:13:17 +00:00
2017-12-13 16:13:17 +00:00
2017-12-13 16:13:17 +00:00
2017-06-17 00:58:19 +00:00
2017-06-17 00:58:19 +00:00
2018-01-05 22:26:23 +00:00
2017-06-17 00:58:19 +00:00
2017-12-13 16:13:17 +00:00
2017-11-30 20:33:45 +00:00
2016-05-03 15:14:17 +00:00
2018-01-03 00:56:30 +00:00
2017-12-13 16:13:17 +00:00