mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
Kernel: Implement some more KUBSAN checks :^)
This patch enables the following -fsanitize sub-options: * bounds * bounds-strict * integer-divide-by-zero * return * shift * shift-base * shift-exponent
This commit is contained in:
parent
547130584c
commit
fad0332898
3 changed files with 34 additions and 1 deletions
|
@ -84,4 +84,16 @@ struct VLABoundData {
|
|||
const TypeDescriptor& type;
|
||||
};
|
||||
|
||||
struct ShiftOutOfBoundsData {
|
||||
SourceLocation location;
|
||||
const TypeDescriptor& lhs_type;
|
||||
const TypeDescriptor& rhs_type;
|
||||
};
|
||||
|
||||
struct OutOfBoundsData {
|
||||
SourceLocation location;
|
||||
const TypeDescriptor& array_type;
|
||||
const TypeDescriptor& index_type;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue