Re: [PATCH 1/5] Compiler Attributes: Add __alloc_size() for better bounds checking

From
Miguel Ojeda <hidden>
Date
2021-08-18 13:08:03
Also in
linux-hardening, linux-kbuild, lkml
Reply to
Kees Cook, 2021-08-18
On Wed, Aug 18, 2021 at 7:08 AM Kees Cook [off-list ref] wrote:
Clang can additionally use alloc_size to informt the results of
Typo.
Additionally disables -Wno-alloc-size-larger-than since the allocators
Disables -Walloc-size-larger-than?
already reject SIZE_MAX, and the compile-time warnings aren't helpful.
Perhaps a bit more context here (and/or in the comment in the
Makefile) would be nice: i.e. why are they not helpful (even if
rejected by the allocators).

Cheers,
Miguel
Thread (21 messages) 21 messages, 8 authors, last reply 2021-08-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help