https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86552
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> --- Yes, that's also (partly) why I submitted a solution for pr71625 comment 15: https://gcc.gnu.org/ml/gcc-patches/2018-07/msg01884.html With that patch applied as well the strlen call is diagnosed.