https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120979
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- I guess we miss a memdup, using strndup instead of strdup might be a small improvement. I don't think inlining it is a good thing to do, this should be addressed at the library level.