mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:27:46 +00:00
AK: Use explode_byte for pointer sanitization
This commit is contained in:
parent
b30b7de2d2
commit
607bddac96
4 changed files with 4 additions and 16 deletions
|
@ -51,10 +51,7 @@ public:
|
|||
{
|
||||
clear();
|
||||
#ifdef SANITIZE_PTRS
|
||||
if constexpr (sizeof(T*) == 8)
|
||||
m_ptr = (T*)(0xe3e3e3e3e3e3e3e3);
|
||||
else
|
||||
m_ptr = (T*)(0xe3e3e3e3);
|
||||
m_ptr = (T*)(explode_byte(0xe3));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue