Changes in uspace/lib/c/generic/ubsan.c [831aa466:2f7d77c6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ubsan.c
r831aa466 r2f7d77c6 98 98 #endif 99 99 void __ubsan_handle_nonnull_return(struct nonnull_return_data *data); 100 void __ubsan_handle_builtin_unreachable(struct unreachable_data *data);101 100 102 101 static void print_loc(const char *func, struct source_location *loc) … … 108 107 f += sizeof(func_prefix); 109 108 110 PRINTF(" #######Undefined behavior %s at %s:%" PRIu32 " col %" PRIu32 "\n",109 PRINTF("Undefined behavior %s at %s:%" PRIu32 " col %" PRIu32 "\n", 111 110 f, loc->file_name, loc->line, loc->column); 112 111 } … … 116 115 { 117 116 print_loc(__func__, &data->loc); 118 PRINTF("Type: %s, alignment: %lu, type_check_kind: %hhu\n",119 data->type->type_name, data->alignment, data->type_check_kind);120 117 ubsan_panic(); 121 118 } … … 222 219 ubsan_panic(); 223 220 } 224 225 void __ubsan_handle_builtin_unreachable(struct unreachable_data *data)226 {227 print_loc(__func__, &data->loc);228 ubsan_panic();229 }230
Note:
See TracChangeset
for help on using the changeset viewer.