tsan: filter out more bogus fd values

people do close(sysconf(_SC_OPEN_MAX)) after fork, where _SC_OPEN_MAX=1200000.

llvm-svn: 195645
This commit is contained in:
Dmitry Vyukov 2013-11-25 14:53:29 +00:00
parent dfe2156c91
commit 8cb7d46d98
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ static FdContext fdctx;
static bool bogusfd(int fd) {
// Apparently a bogus fd value.
return fd < 0 || fd >= (1 << 30);
return fd < 0 || fd >= kTableSize;
}
static FdSync *allocsync() {