Re: [RFC][PATCH 00/13] Provide saturating helpers for allocation

2018-05-09 Thread Kees Cook
On Wed, May 9, 2018 at 9:08 AM, Laura Abbott wrote: > On 05/08/2018 05:42 PM, Kees Cook wrote: >> >> This is a stab at providing three new helpers for allocation size >> calculation: >> >> struct_size(), array_size(), and array3_size(). >> >> These are implemented on top of

Re: [RFC][PATCH 00/13] Provide saturating helpers for allocation

2018-05-09 Thread Kees Cook
On Wed, May 9, 2018 at 9:08 AM, Laura Abbott wrote: > On 05/08/2018 05:42 PM, Kees Cook wrote: >> >> This is a stab at providing three new helpers for allocation size >> calculation: >> >> struct_size(), array_size(), and array3_size(). >> >> These are implemented on top of Rasmus's overflow

Re: [RFC][PATCH 00/13] Provide saturating helpers for allocation

2018-05-09 Thread Laura Abbott
On 05/08/2018 05:42 PM, Kees Cook wrote: This is a stab at providing three new helpers for allocation size calculation: struct_size(), array_size(), and array3_size(). These are implemented on top of Rasmus's overflow checking functions, and the last 8 patches are all treewide conversions of

Re: [RFC][PATCH 00/13] Provide saturating helpers for allocation

2018-05-09 Thread Laura Abbott
On 05/08/2018 05:42 PM, Kees Cook wrote: This is a stab at providing three new helpers for allocation size calculation: struct_size(), array_size(), and array3_size(). These are implemented on top of Rasmus's overflow checking functions, and the last 8 patches are all treewide conversions of