kernel/source/misc/ubsan.cpp
// TODO: GCC's libubsan does not have the second parameter, but its builtin
//       somehow has it and conflict if we don't match it.
GCC's libubsan does not have the second parameter, but its builtin
somehow has it and conflict if we don't match it.
GCC ' s libubsan does not have the second parameter but its builtin somehow has it and conflict if we don ' t match it .
void __ubsan_handle_nonnull_arg(void* data_raw, intptr_t index_raw)
{
	auto data = (ubsan_nonnull_arg_data*) data_raw;
	auto index = (ubsan_value_handle_t) index_raw;
	(void) index;
	ubsan_abort(&data->location, "null argument");
}
void __ubsan_handle_nonnull_arg ( void * data_raw , intptr_t index_raw ) { auto data = ( ubsan_nonnull_arg_data * ) data_raw ; auto index = ( ubsan_value_handle_t ) index_raw ; ( void ) index ; ubsan_abort ( & data -> location , " " ) ; }
TODO: GCC's libubsan does not have the second parameter, but its builtin
somehow has it and conflict if we don't match it.
TODO : GCC ' s libubsan does not have the second parameter but its builtin somehow has it and conflict if we don ' t match it .