mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:07:47 +00:00
LibCompress+Tests: Demonstrate and fix faulty metadata length
The test-case is heavily inspired by: https://github.com/google/brotli/blob/master/tests/testdata/x.compressed.01 Or in words: A metadata meta-block containing `Y` (which should be ignored), and then the actual data (a single `Z`). The bug used to skip one metadata byte too few, and thus read garbage.
This commit is contained in:
parent
fe48fed4fa
commit
8de7a91571
4 changed files with 7 additions and 1 deletions
1
Tests/LibCompress/brotli-test-files/single-z.txt
Normal file
1
Tests/LibCompress/brotli-test-files/single-z.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Z
|
BIN
Tests/LibCompress/brotli-test-files/single-z.txt.br
Normal file
BIN
Tests/LibCompress/brotli-test-files/single-z.txt.br
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue