1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

Kernel: And some more KUBSAN checks :^)

Here comes a few more:

* enum
* object-size
* vptr
This commit is contained in:
Andreas Kling 2021-02-06 17:34:44 +01:00
parent fad0332898
commit 04ff46bff4
3 changed files with 15 additions and 1 deletions

View file

@ -108,4 +108,11 @@ void __ubsan_handle_out_of_bounds(const OutOfBoundsData& data, void*)
dbgln("KUBSAN: out of bounds access into array of {} ({}-bit), index type {} ({}-bit)", data.array_type.name(), data.array_type.bit_width(), data.index_type.name(), data.index_type.bit_width());
print_location(data.location);
}
void __ubsan_handle_type_mismatch_v1(const TypeMismatchData&, void*);
void __ubsan_handle_type_mismatch_v1(const TypeMismatchData& data, void*)
{
dbgln("KUBSAN: type mismatch, {} ({}-bit)", data.type.name(), data.type.bit_width());
print_location(data.location);
}
}