diff options
author | Martin Liska <mliska@suse.cz> | 2022-05-05 12:52:44 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-11-15 16:44:59 +0100 |
commit | 0c7a928859f41bc8ea47d97da5df4aac75bbd5fe (patch) | |
tree | 831c89d83e59bd31b7b3908c8e5efb322cd26840 /libsanitizer/ubsan/ubsan_handlers.cpp | |
parent | 5f3fa2655cb256d336e90e74e42a2452d0fbf0e8 (diff) | |
download | gcc-0c7a928859f41bc8ea47d97da5df4aac75bbd5fe.zip gcc-0c7a928859f41bc8ea47d97da5df4aac75bbd5fe.tar.gz gcc-0c7a928859f41bc8ea47d97da5df4aac75bbd5fe.tar.bz2 |
libsanitizer: Apply local patches
Diffstat (limited to 'libsanitizer/ubsan/ubsan_handlers.cpp')
-rw-r--r-- | libsanitizer/ubsan/ubsan_handlers.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libsanitizer/ubsan/ubsan_handlers.cpp b/libsanitizer/ubsan/ubsan_handlers.cpp index 410292a..970075e 100644 --- a/libsanitizer/ubsan/ubsan_handlers.cpp +++ b/libsanitizer/ubsan/ubsan_handlers.cpp @@ -894,6 +894,21 @@ void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable, } // namespace __ubsan +void __ubsan::__ubsan_handle_cfi_bad_icall(CFIBadIcallData *CallData, + ValueHandle Function) { + GET_REPORT_OPTIONS(false); + CFICheckFailData Data = {CFITCK_ICall, CallData->Loc, CallData->Type}; + handleCFIBadIcall(&Data, Function, Opts); +} + +void __ubsan::__ubsan_handle_cfi_bad_icall_abort(CFIBadIcallData *CallData, + ValueHandle Function) { + GET_REPORT_OPTIONS(true); + CFICheckFailData Data = {CFITCK_ICall, CallData->Loc, CallData->Type}; + handleCFIBadIcall(&Data, Function, Opts); + Die(); +} + void __ubsan::__ubsan_handle_cfi_check_fail(CFICheckFailData *Data, ValueHandle Value, uptr ValidVtable) { |