1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:18:13 +00:00
serenity/Userland
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
..
Applets Userland: Tighten promises by removing 'proc' where it isn't used 2022-10-03 17:09:21 +01:00
Applications PixelPaint: Add Hue/Saturation filter 2022-10-10 11:02:10 +01:00
Demos Userland: Unveil /proc/all in applications which require it 2022-10-03 17:09:21 +01:00
DevTools HackStudio: Set proper action scope for editor shortcuts 2022-10-11 11:12:41 +02:00
DynamicLoader LibPthread: Implement named semaphores 2022-07-21 16:39:22 +02:00
Games Solitaire: Ignore all key presses while dragging cards 2022-10-10 16:16:01 +01:00
Libraries LibCompress: Brotli support metadata of skip_length=0 2022-10-11 22:49:33 -06:00
Services WindowServer+LibGUI: Shrink window edge resize hot-spots 2022-10-11 17:48:48 +02:00
Shell Userland: Remove unecessary uses of __serenity__ macro 2022-10-10 12:23:12 +02:00
Utilities pro: Stop closing stdout early 2022-10-11 21:52:13 +02:00
CMakeLists.txt Meta+Userland: Add ENABLE_USERSPACE_COVERAGE_COLLECTION CMake option 2022-05-02 01:46:18 +02:00