https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79221
--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Martin Sebor from comment #0) > Similar to bug 79220, the -Wstringop-overflow option diagnoses the buffer > overflow in the call to strcat in f() in the program below but fails to do > the same for the strcat() overflow in g(). As in the referenced bug, GCC > transforms the second strcat() to an assignment followed by a call to > memcpy, defeating the overflow detection. GCC should avoid this > transformation when the destination isn't big enough for the copy. > > I expect this bug will be resolved by a comprehensive fix for bug 79220 bug 79220 was fixed... was the fix for it comprehensive enough?