Skip to content

xz decompression as a NarSize-bounded decoder #14

Description

@aoinoikaz

The compression flag and lzma dependency were removed with nothing consuming them; xz support returns for foreign-cache substitution (cache.nixos.org serves .nar.xz). The decoder must be output-bounded: the consumer knows the narinfo's declared NarSize before decompressing, so decompression takes that bound and fails past it - a small compressed input cannot expand to arbitrary memory ahead of the hash check.

Consumed by nova-nix's foreign-cache substitution issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions