This repository was archived by the owner on Jun 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
1
+ 2020-10-15 Tadeu Zagallo <
[email protected] >
2
+
3
+ Add extra validation to MetaAllocator::findAndRemoveFreeSpace
4
+ https://bugs.webkit.org/show_bug.cgi?id=217792
5
+ <rdar://problem/69433015>
6
+
7
+ Reviewed Saam Barati.
8
+
9
+ * wtf/MetaAllocator.cpp:
10
+ (WTF::MetaAllocator::findAndRemoveFreeSpace):
11
+
1
12
2020-10-13 Tadeu Zagallo <
[email protected] >
2
13
3
14
Assert that WTF::HashTable does not visit the same bucket twice
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ MetaAllocator::FreeSpacePtr MetaAllocator::findAndRemoveFreeSpace(size_t sizeInB
211
211
return nullptr ;
212
212
213
213
size_t nodeSizeInBytes = node->sizeInBytes ();
214
- ASSERT (nodeSizeInBytes >= sizeInBytes);
214
+ RELEASE_ASSERT (nodeSizeInBytes >= sizeInBytes);
215
215
216
216
m_freeSpaceSizeMap.remove (node);
217
217
@@ -246,6 +246,7 @@ MetaAllocator::FreeSpacePtr MetaAllocator::findAndRemoveFreeSpace(size_t sizeInB
246
246
m_freeSpaceStartAddressMap.remove (node->m_start );
247
247
248
248
node->m_start += sizeInBytes;
249
+ RELEASE_ASSERT (nodeStartAsInt < node->m_start .untaggedPtr <uintptr_t >() && node->m_start .untaggedPtr <uintptr_t >() < node->m_end .untaggedPtr <uintptr_t >());
249
250
250
251
m_freeSpaceSizeMap.insert (node);
251
252
m_freeSpaceStartAddressMap.add (node->m_start , node);
You can’t perform that action at this time.
0 commit comments