[Bug other/19089] Environment variable TMP may yield gcc: abort with internal error

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 28 02:16:53 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19089

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Something like after the access check has passed:

#ifdef S_ISDIR
struct stat s;
if (stat(dir, &s) <0)
  return NULL;
if (!S_ISDIR (s.st_mode))
  return NULL;
#endif


More information about the Gcc-bugs mailing list