Skip to content

Commit

Permalink
Revert "[sanitizer] Add CHECKs to validate calculated TLS range" (#10…
Browse files Browse the repository at this point in the history
…8112)

Reverts #107941

Broke PPC bot
  • Loading branch information
fmayer authored Sep 10, 2024
1 parent bb72865 commit 5804193
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,6 @@ DTLS::DTV *DTLS_on_tls_get_addr(void *arg_void, void *res,
// This may happen inside the DTOR of main thread, so just ignore it.
tls_size = 0;
}
if (tls_size) {
CHECK_LE(tls_beg, reinterpret_cast<uptr>(res));
CHECK_LT(reinterpret_cast<uptr>(res), tls_beg + tls_size);
}
dtv->beg = tls_beg;
dtv->size = tls_size;
return dtv;
Expand Down

0 comments on commit 5804193

Please sign in to comment.