ladybird/Tests/LibCompress/brotli-test-files
Tommy Murphy 0ee98c69c1 LibCompress: Brotli support metadata of skip_length=0
The relevant RFC section from
https://www.rfc-editor.org/rfc/rfc7932#section-9.2

MSKIPBYTES * 8 bits: MSKIPLEN - 1, where MSKIPLEN is
       the number of metadata bytes; this field is
       only present if MSKIPBYTES is positive;
       otherwise, MSKIPLEN is 0 (if MSKIPBYTES is
       greater than 1, and the last byte is all
       zeros, then the stream should be rejected as
       invalid)

So when skip_bytes is zero we need to break and
re-align bytes.

Added the relevant test case that demonstrates this from:
https://github.com/google/brotli/blob/master/tests/testdata/x.compressed
2022-10-11 22:49:33 -06:00
..
happy3rd.html LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
happy3rd.html.br LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
hello.txt LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
hello.txt.br LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
KaticaRegular10.font LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
KaticaRegular10.font.br LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
lorem2.txt LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
lorem2.txt.br LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
lorem.txt LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
lorem.txt.br LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
serenityos.html LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
serenityos.html.br LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
single-x.txt LibCompress: Brotli support metadata of skip_length=0 2022-10-11 22:49:33 -06:00
single-x.txt.br LibCompress: Brotli support metadata of skip_length=0 2022-10-11 22:49:33 -06:00
single-z.txt LibCompress+Tests: Demonstrate and fix faulty metadata length 2022-09-17 04:10:11 +00:00
single-z.txt.br LibCompress+Tests: Demonstrate and fix faulty metadata length 2022-09-17 04:10:11 +00:00
transform.txt LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
transform.txt.br LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
wellhello2.txt LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
wellhello2.txt.br LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
wellhello.txt LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
wellhello.txt.br LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00
zero-one.bin.br LibCompress: Implement Brotli decompressor 2022-05-21 22:41:40 +02:00