Skip to content

Commit

Permalink
-fsatinize=function 対応
Browse files Browse the repository at this point in the history
Clang (C言語) に新しいUBSanの検査項目が追加されたので、デバッグビルドが通らないようになっている。
新たに導入されたハンドラを定義することで対応。

#16
  • Loading branch information
nuta committed Mar 9, 2024
1 parent 2a49c4a commit 49a5ca3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/common/ubsan.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ void __ubsan_handle_sub_overflow(void) {
void __ubsan_handle_mul_overflow(void) {
report_ubsan_event("mul overflow");
}
void __ubsan_handle_function_type_mismatch(void) {
report_ubsan_event("__ubsan_handle_function_type_mismatch");
}
void __ubsan_handle_divrem_overflow(void) {
report_ubsan_event("divrem overflow");
}
Expand Down

0 comments on commit 49a5ca3

Please sign in to comment.