https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94849
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #2) > I think it is undefined behavior and just doesn't crash because the pathname > is passed to a syscall which will fail then. > So IMHO nothing we should support. Agree with that. One possible improvement can be decoration of the filename with non-null argument (in Glibc).