Sniped from Fedora http://bugs.gentoo.org/104378 http://www.securityfocus.com/bid/14640 --- slocate/main.c +++ slocate/main.c @@ -1057,6 +1057,10 @@ if (!file) break; + /* fts_read () from glibc fails with EOVERFLOW when fts_pathlen + would overflow the u_short file->fts_pathlen. */ + if (file->fts_info == FTS_D && file->fts_pathlen > 32768) + fts_set(dir,file,FTS_SKIP); if (file->fts_info != FTS_DP && file->fts_info != FTS_NS) { if ((EXCLUDE && !match_exclude(file->fts_path,"")) || !EXCLUDE)