mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
Kernel: KUBSAN implementation of returns-nonnull-attribute
This didn't find anything in the current source.
This commit is contained in:
parent
57e10eadac
commit
c95d48c8d6
Notes:
sideshowbarker
2024-07-18 22:33:26 +09:00
Author: https://github.com/bgianfo
Commit: c95d48c8d6
Pull-request: https://github.com/SerenityOS/serenity/pull/5250
3 changed files with 12 additions and 1 deletions
|
@ -53,6 +53,13 @@ void __ubsan_handle_nonnull_arg(const NonnullArgData& data)
|
|||
print_location(data.location);
|
||||
}
|
||||
|
||||
void __ubsan_handle_nonnull_return_v1(const NonnullReturnData&, const SourceLocation&);
|
||||
void __ubsan_handle_nonnull_return_v1(const NonnullReturnData&, const SourceLocation& location)
|
||||
{
|
||||
dbgln("KUBSAN: null pointer return from function declared to never return null");
|
||||
print_location(location);
|
||||
}
|
||||
|
||||
void __ubsan_handle_vla_bound_not_positive(const VLABoundData&, void*);
|
||||
void __ubsan_handle_vla_bound_not_positive(const VLABoundData& data, void*)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue