https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 Bug 83819 depends on bug 86572, which changed state.
Bug 86572 Summary: unsafe strlen folding of const arguments with non-const offset https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86572 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED