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 '<unknown> *'"
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 <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-04-17 09:30:15 +02:00 committed by Carles Cufí
parent 0263e0205b
commit 992148375c

View file

@ -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;