Changeset 144106 in webkit
- Timestamp:
- Feb 26, 2013, 2:13:51 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/chromium/1364/Source/WebCore/rendering/RenderArena.cpp
r133119 r144106 37 37 #include "RenderArena.h" 38 38 39 #include <limits> 39 40 #include <stdlib.h> 40 41 #include <string.h> 41 42 #include <wtf/Assertions.h> 43 #include <wtf/CryptographicallyRandomNumber.h> 42 44 43 45 #define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y)) … … 90 92 // RenderObject pointer. 91 93 // See http://download.crowdstrike.com/papers/hes-exploiting-a-coalmine.pdf. 92 93 // The bottom bits are predictable because the binary is loaded on a 94 // boundary. This just shifts most of those predictable bits out. 95 m_mask = ~(reinterpret_cast<uintptr_t>(WTF::fastMalloc) >> 13); 94 WTF::cryptographicallyRandomValues(&m_mask, sizeof(m_mask)); 95 m_mask |= (static_cast<uintptr_t>(3) << (std::numeric_limits<uintptr_t>::digits - 2)) | 1; 96 96 } 97 97
Note:
See TracChangeset
for help on using the changeset viewer.