https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102382
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Not to mention, for calloc like the above where size is non-constant, it wouldn't know how many there are (it would need some magic for all). Anyway, even constant number of 0s at the end of string > 1 wouldn't really fit well into the way how string lengths are invalidated...