Conrad Meyer c02fc9607a 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
..
2018-01-08 21:27:41 +00:00
2017-11-30 20:33:45 +00:00
2017-10-12 15:48:37 +00:00
2018-01-03 00:56:30 +00:00
2018-01-03 00:56:30 +00:00
2017-01-25 20:22:32 +00:00
2018-01-08 21:27:41 +00:00
2018-01-08 21:27:41 +00:00
2017-12-13 16:30:39 +00:00
2018-01-08 21:27:41 +00:00
2017-08-07 14:09:57 +00:00
2017-11-30 20:33:45 +00:00
2017-11-29 12:49:22 +00:00
2017-06-17 00:58:19 +00:00
2017-06-17 00:58:19 +00:00
2017-12-01 22:51:02 +00:00