Re: [PATCH] sanitizer: Store no_sanitize attribute value in uint32 instead of unsigned

2025-04-22 Thread Kees Cook
On April 22, 2025 12:08:51 AM PDT, Sam James wrote: >Kees Cook writes: > >> On Thu, Apr 10, 2025 at 05:17:51PM -0700, Keith Packard wrote: >>> A target using 16-bit ints won't have enough bits to hold the whole >>> flag_sanitize set. Be explicit about using uint32 for the attribute data. >>>

Re: [PATCH] sanitizer: Store no_sanitize attribute value in uint32 instead of unsigned

2025-04-22 Thread Sam James
Kees Cook writes: > On Thu, Apr 10, 2025 at 05:17:51PM -0700, Keith Packard wrote: >> A target using 16-bit ints won't have enough bits to hold the whole >> flag_sanitize set. Be explicit about using uint32 for the attribute data. >> >> Signed-off-by: Keith Packard >> --- >> gcc/c-family/c-att

Re: [PATCH] sanitizer: Store no_sanitize attribute value in uint32 instead of unsigned

2025-04-21 Thread Kees Cook
On Thu, Apr 10, 2025 at 05:17:51PM -0700, Keith Packard wrote: > A target using 16-bit ints won't have enough bits to hold the whole > flag_sanitize set. Be explicit about using uint32 for the attribute data. > > Signed-off-by: Keith Packard > --- > gcc/c-family/c-attribs.cc | 4 ++-- > 1 file c

[PATCH] sanitizer: Store no_sanitize attribute value in uint32 instead of unsigned

2025-04-10 Thread Keith Packard
A target using 16-bit ints won't have enough bits to hold the whole flag_sanitize set. Be explicit about using uint32 for the attribute data. Signed-off-by: Keith Packard --- gcc/c-family/c-attribs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/c-family/c-attribs.