Skippable frame
A skippable frame is a compatible LZ4/Zstandard envelope for length-delimited user data that ordinary decompression skips.
A four-byte magic (0x184D2A50-0x184D2A5F) and four-byte little-endian length precede up to 2^32 - 1 user-data bytes. Length excludes the header. Ordinary LZ4 and Zstandard data frames are not interchangeable. [1] [5]
Application-specific readers may interpret this metadata even though the codec does not return it as decoded payload. [1]
In Hesela's synthetic CLI experiment, changing a skippable generation label preserved the decoded bytes and their SHA-256. The whole stored-stream hash changed. This demonstrates a verification-scope gap, not a hash collision or a codec defect. [2]
In liblz4 1.9.4, LZ4F_headerSize reports eight bytes, while fresh-context LZ4F_getFrameInfo consumes only the four-byte magic and reports frameType as skippable. Resume from its returned consumed-byte count so the decoder still reads the length. The immediately returned contentSize is not the metadata length. [6] [7]
Skipping does not authenticate metadata or bind it to recovered data; applications need trusted expectations. [1] [5]
The seekable extension stores its index in a final skippable frame. Earlier skippable or empty frames still occupy stored bytes and index entries even when their decoded size is zero. [3]
In Hesela's native v1.5.7 reference-reader controls, changing a zero-output entry checksum survived a whole-output read and an explicit zero-length frame call. An independent physical/index comparison detected it. Ordinary sequential decompression also skipped a changed seek-table checksum. Successful payload recovery is not evidence that every indexed object was validated. [4]
Relations
Citations
- RFC 8878, section 3.1.2: Skippable Frames
- Hesela: Compressed archives, dictionary dependencies and validation coverage
- Zstandard seekable format 0.1.0, pinned to v1.5.7
- Hesela: native seekable-decoder observations, source fingerprints and reproduction
- LZ4 Frame Format 1.6.4, pinned v1.10.0: Skippable Frames
- LZ4 v1.9.4 implementation: headerSize, getFrameInfo and skippable header handling
- Hesela: LZ4 header sizing, validation and consumed-input controls
Sources & caveats
- Format definition from RFC 8878. The original CLI metadata observation did not test seek tables; the separate native seekable study now tests selected in-memory reader boundaries. Neither establishes application-specific metadata authentication. [4]
- Existing slug and Zstandard alias retained; expanded to LZ4 using the explicit compatibility statement in RFC 8878. Header/cursor observations execute liblz4 1.9.4 only; no maximum-size allocation, metadata authentication or second-version execution was tested.