1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:37:46 +00:00

KUBSAN: Add nearly all missing -fsanitize handlers (#5254)

This commit is contained in:
Hendiadyoin1 2021-02-11 20:58:01 +01:00 committed by GitHub
parent c98ad27803
commit 4d5496b2b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 167 additions and 22 deletions

View file

@ -30,6 +30,8 @@
namespace Kernel::UBSanitizer {
typedef void* ValueHandle;
class SourceLocation {
public:
const char* filename() const { return m_filename; }
@ -107,4 +109,30 @@ struct TypeMismatchData {
u8 type_check_kind;
};
struct AlignmentAssumptionData {
SourceLocation location;
SourceLocation assumption_location;
const TypeDescriptor& type;
};
struct UnreachableData {
SourceLocation location;
};
struct ImplicitConversionData {
SourceLocation location;
const TypeDescriptor& from_type;
const TypeDescriptor& to_type;
/* ImplicitConversionCheckKind */ unsigned char kind;
};
struct InvalidBuiltinData {
SourceLocation location;
unsigned char kind;
};
struct PointerOverflowData {
SourceLocation location;
};
}