https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178

--- Comment #19 from Kees Cook <kees at outflux dot net> ---
Created attachment 59874
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59874&action=edit
RFC for ignoring NUL byte with nonstring attribute

Here's an RFC patch for allowing the NUL char truncation when the nonstring
attribute is present. I haven't added (or updated) test cases yet. Does this
look like the right direction? (It also respects c++-compat.) Initial testing
with the Linux kernel looks good.

Reply via email to