https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178
--- Comment #21 from Kees Cook <kees at outflux dot net> --- Okay, now with tests and an updated truncation message. :) Please see: https://gcc.gnu.org/pipermail/gcc-patches/2024-December/671714.html (Hopefully I have managed to get coding and commit log style correct...)