mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Add UBSAN to ASAN (#88055)
Add undefined behavior sanitizer to `USE_ASAN` option. Added `torch._C._crash_if_vptr_ubsan()` that only fails if vptr belongs to a wrong class after typecast Deleted all ubsan supressions, but disabled `ProtoTest::Basic` as it fails above-mentioned vptr check. Fixes https://github.com/pytorch/pytorch/issues/88042 Pull Request resolved: https://github.com/pytorch/pytorch/pull/88055 Approved by: https://github.com/ezyang
This commit is contained in:
committed by
PyTorch MergeBot
parent
81f74eed75
commit
e1c123d29a
@ -1,2 +0,0 @@
|
||||
vptr:libtorch_python.so
|
||||
vptr:test_jit
|
Reference in New Issue
Block a user