From aba0a25524d700ff54cf95041b9d9753bbee262e Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Mon, 6 Mar 2023 17:07:28 +0800 Subject: [PATCH] ubsan: Implement __ubsan_handle_invalid_builtin Signed-off-by: Huang Qi --- mm/ubsan/ubsan.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mm/ubsan/ubsan.c b/mm/ubsan/ubsan.c index 744117af17..e0952a5c42 100644 --- a/mm/ubsan/ubsan.c +++ b/mm/ubsan/ubsan.c @@ -377,3 +377,8 @@ void __ubsan_handle_pointer_overflow(FAR void *data, { ubsan_prologue_epilogue(data, "pointer-overflow"); } + +void __ubsan_handle_invalid_builtin(FAR void *data) +{ + ubsan_prologue_epilogue(data, "invalid-builtin"); +}