use CheckInAllocMsg::PointerArithmeticTest for ptr_offset error
This commit is contained in:
parent
d620ae1070
commit
abdba81d03
8 changed files with 14 additions and 10 deletions
|
@ -306,6 +306,9 @@ impl fmt::Display for UndefinedBehaviorInfo<'_> {
|
|||
ptr.alloc_id,
|
||||
allocation_size.bytes()
|
||||
),
|
||||
DanglingIntPointer(_, CheckInAllocMsg::InboundsTest) => {
|
||||
write!(f, "null pointer is not allowed for this operation")
|
||||
}
|
||||
DanglingIntPointer(i, msg) => {
|
||||
write!(f, "{} failed: 0x{:x} is not a valid pointer", msg, i)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue