ladybird/Tests/LibCompress
Andrew Kaster a223ef3c4f Tests: Use ByteBuffer::create_zeroed in TestDeflate instead of memset
The round trip compress test wants the first half of the byte buffer to
be filled with random data, and the second half to be all zeroes. The
strategy of using memset on ByteBuffer::offset_pointer confuses
__builtin_memset_chk when building with -fsanitize=undefined. It thinks
that the buffer is using inline capacity when we can prove to ourselves
pretty easily that it's not. To avoid this, just create the buffer
zeroed to start, and then fill the first half with the random data.
2021-05-27 15:18:03 +02:00
..
CMakeLists.txt Tests: Move LibCompress tests to Tests/LibCompress 2021-05-06 17:54:28 +02:00
TestDeflate.cpp Tests: Use ByteBuffer::create_zeroed in TestDeflate instead of memset 2021-05-27 15:18:03 +02:00
TestGzip.cpp Tests: Move LibCompress tests to Tests/LibCompress 2021-05-06 17:54:28 +02:00
TestZlib.cpp Tests: Move LibCompress tests to Tests/LibCompress 2021-05-06 17:54:28 +02:00