1
Fork 0
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:
Andreas Kling 2021-02-06 16:08:30 +01:00
parent 547130584c
commit fad0332898
3 changed files with 34 additions and 1 deletions

View file

@ -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;
};
}