tsan: do not crash when apparently bogus fd is passed to e.g. close
commit175599be65a5c08551bbe0359a7ca1aadb23ec8b
authorDmitry Vyukov <dvyukov@google.com>
Fri, 25 Oct 2013 09:45:44 +0000 (25 09:45 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 25 Oct 2013 09:45:44 +0000 (25 09:45 +0000)
treee5c8ae18a55224a50ffc34163d37116184986d00
parentaff25aa02098a510eff6eda1a3ec823e5b1fe1aa
tsan: do not crash when apparently bogus fd is passed to e.g. close

some tests test libc/filesystem error handling paths (e.g. close(INT_MAX)),
currently such tests fail
with this change they work as expected

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193400 91177308-0d34-0410-b5e6-96231b3b80d8
lib/tsan/rtl/tsan_fd.cc