1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:07:35 +00:00

AK: Use explode_byte for pointer sanitization

This commit is contained in:
Hendiadyoin1 2021-08-22 16:30:03 +02:00 committed by Ali Mohammad Pur
parent b30b7de2d2
commit 607bddac96
4 changed files with 4 additions and 16 deletions

View file

@ -43,10 +43,7 @@ public:
{
clear();
#ifdef SANITIZE_PTRS
if constexpr (sizeof(T*) == 8)
m_ptr = (T*)(0xe1e1e1e1e1e1e1e1);
else
m_ptr = (T*)(0xe1e1e1e1);
m_ptr = (T*)(explode_byte(0xe1));
#endif
}