forked from OSchip/llvm-project
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:
parent
dfe2156c91
commit
8cb7d46d98
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue