https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70311
--- Comment #5 from Keith Marshall <keith.marshall at mailinator dot com> --- For sake of completeness, I've also implemented a solution for the strnlen() issue, within MinGW.org's mingwrt code base.