mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
KUBSAN: Add nearly all missing -fsanitize handlers (#5254)
This commit is contained in:
parent
c98ad27803
commit
4d5496b2b2
Notes:
sideshowbarker
2024-07-18 22:25:52 +09:00
Author: https://github.com/Hendiadyoin1 🔰
Commit: 4d5496b2b2
Pull-request: https://github.com/SerenityOS/serenity/pull/5254
Reviewed-by: https://github.com/bgianfo
3 changed files with 167 additions and 22 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue