ladybird/Tests/AK
Andrew Kaster 73adbb319c AK: Don't read past the end in BitmapView::count_in_range()
The current code is factored such that reads to the entirety of the last
byte should be dropped. This was relying on the fact that last would be
one past the end in that case. Instead of actually reading that byte
when it's completely out of bounds of the bitmask, just skip reads that
would be invalid. Add more tests to make sure that the behavior is
correct for byte aligned reads of byte aligned bitmaps.
2021-05-16 21:58:14 +01:00
..
CMakeLists.txt AK: Add a Tuple implementation 2021-05-11 14:09:17 +01:00
test.frm Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestAllOf.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestAnyOf.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestArray.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestAtomic.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBadge.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBase64.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBinaryHeap.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBinarySearch.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBitCast.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBitmap.cpp AK: Don't read past the end in BitmapView::count_in_range() 2021-05-16 21:58:14 +01:00
TestByteBuffer.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestChecked.cpp Tests: Add tests for Checked<T>::div() overflow 2021-05-07 09:26:11 +02:00
TestCircularDeque.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestCircularDuplexStream.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestCircularQueue.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestComplex.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestDistinctNumeric.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestDoublyLinkedList.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestEndian.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestEnumBits.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestFind.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestFormat.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestGenericLexer.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestHashFunctions.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestHashMap.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestHashTable.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestHex.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIndexSequence.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIntrusiveList.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIntrusiveRedBlackTree.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIPv4Address.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestJSON.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestLexicalPath.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestMACAddress.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestMemMem.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestMemoryStream.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestNeverDestroyed.cpp Tests: Mark use-after-scope NeverDestroyed test NO_SANITIZE_ADDRESS 2021-05-14 08:34:00 +01:00
TestNonnullRefPtr.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestNumberFormat.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestOptional.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestQueue.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestQuickSort.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestRedBlackTree.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestRefPtr.cpp Tests: Fix use-after-free in TestRefPtr.self_observers 2021-05-14 08:34:00 +01:00
TestSinglyLinkedList.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestSourceGenerator.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestSourceLocation.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestSpan.cpp AK: Implement Span::starts_with() 2021-05-07 11:46:53 +01:00
TestString.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestStringUtils.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestStringView.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestTime.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestTrie.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestTuple.cpp AK: Add a Tuple implementation 2021-05-11 14:09:17 +01:00
TestTypedTransfer.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestTypeTraits.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestURL.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestUtf8.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestVariant.cpp AK/Variant: Deduplicate the contained types 2021-05-11 14:09:17 +01:00
TestVector.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestWeakPtr.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00