search for: ubsan_interfac

Displaying 3 results from an estimated 3 matches for "ubsan_interfac".

Did you mean: ubsan_interface
2017 Jul 21
3
Where does the LLVM implement the Ubsan's instrumentations?
> I think your best bet for controlling code bloat is to compile with > -fsanitize=undefined -fsanitize-trap=undefined. Also you may not need all of UBSan's checks at the same time -- so pick and choose among its checks using the finer-grained flags. If you're really stuck against a hard limit on code size, try applying UBSan to a subset of files in your project at a time. John
2017 Jul 21
2
Where does the LLVM implement the Ubsan's instrumentations?
...the trap-function. I hope to print the wrong code running IP address in my trap function (then, I can use llvm-symbolizer to know its code location), and I also hope to print undefined behavior specific type info, e.g. add_overflow, type_mismatch_v1, etc., which are defined in compiler-rt\lib\ubsan\ubsan_interface.inc. How should I correctly define the __my_sanitizer_trap() and let clang/llvm input relative info into my trap function? > > Thanks > Steven > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.ll...
2017 Jul 21
2
Where does the LLVM implement the Ubsan's instrumentations?
Hello, I'm investigating on enabling the Ubsan in my firmware. I have two questions about Ubsan: 1. I see the Ubsan run-time lib functions are defined in http://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/ubsan/ubsan_interface.inc, but I cannot find how the LLVM implement the Ubsan instrumentations. I see the Asan's instrumentation lib is in http://llvm.org/svn/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp, but where is the Ubsan instrumentation lib? 2. My firmware usage scen...