From 992148375c885b7bd847a114fb29a1aee650fa69 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Wed, 17 Apr 2024 09:30:15 +0200 Subject: [PATCH] boards: nrf*bsim: Disable ubsan in bst_install UBSAN reports a bogus error in this function: "load of address x with insufficient space for an object of type ' *'" as it seems unable to determine the size of test_installers. Let's disable this check in this function. Signed-off-by: Alberto Escolar Piedras --- boards/native/nrf_bsim/common/bstests_entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/native/nrf_bsim/common/bstests_entry.c b/boards/native/nrf_bsim/common/bstests_entry.c index da1a3557147..7b22a50ebf5 100644 --- a/boards/native/nrf_bsim/common/bstests_entry.c +++ b/boards/native/nrf_bsim/common/bstests_entry.c @@ -74,7 +74,7 @@ static struct bst_test_instance *bst_test_find(struct bst_test_list *tests, return NULL; } -void bst_install_tests(void) +__noubsan void bst_install_tests(void) { int idx = 0;