mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-08 12:56:23 +03:00
0ee98c69c1
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 |
||
---|---|---|
.. | ||
happy3rd.html | ||
happy3rd.html.br | ||
hello.txt | ||
hello.txt.br | ||
KaticaRegular10.font | ||
KaticaRegular10.font.br | ||
lorem2.txt | ||
lorem2.txt.br | ||
lorem.txt | ||
lorem.txt.br | ||
serenityos.html | ||
serenityos.html.br | ||
single-x.txt | ||
single-x.txt.br | ||
single-z.txt | ||
single-z.txt.br | ||
transform.txt | ||
transform.txt.br | ||
wellhello2.txt | ||
wellhello2.txt.br | ||
wellhello.txt | ||
wellhello.txt.br | ||
zero-one.bin.br |