Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ulikunitz/xz
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.12
Choose a base ref
...
head repository: ulikunitz/xz
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.5.14
Choose a head ref
  • 3 commits
  • 14 files changed
  • 1 contributor

Commits on Aug 20, 2025

  1. Add new package xio with WriteCloserStack

    @kodawah raised the problem that xz.Writer.Close doesn't close the
    underlying writer. Instead of changing the behavior of the Writer I
    added WriteCloserStack in a new package to address the problem.
    
    fixes: #61
    ulikunitz committed Aug 20, 2025
    Configuration menu
    Copy the full SHA
    c8314b8 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2025

  1. Address Security Issue GHSA-jc7w-c686-c4v9

    This commit addresses security issue GHSA-jc7w-c686-c4v9.
    
    The mitigating measures are described for the Reader type and I added a
    TestZeroPrefixIssue function to test the mitigations.
    
    // # Security concerns
    //
    // Note that LZMA format doesn't support a magic marker in the header. So
    // [NewReader] cannot determine whether it reads the actual header. For instance
    // the LZMA stream might have a zero byte in front of the reader, leading to
    // larger dictionary sizes and file sizes. The code will detect later that there
    // are problems with the stream, but the dictionary has already been allocated
    // and this might consume a lot of memory.
    //
    // Version 0.5.14 introduces built-in mitigations:
    //
    //   - The [ReaderConfig] DictCap field is now interpreted as a limit for the
    //     dictionary size.
    //   - The default is 2 Gigabytes (2^31 bytes).
    //   - Users can check with the [Reader.Header] method what the actual values are in
    //     their LZMA files and set a smaller limit using [ReaderConfig].
    //   - The dictionary size doesn't exceed the larger of the file size and
    //     the minimum dictionary size. This is another measure to prevent huge
    //     memory allocations for the dictionary.
    //   - The code supports stream sizes only up to a pebibyte (1024^5).
    ulikunitz committed Aug 21, 2025
    Configuration menu
    Copy the full SHA
    88ddf1d View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2025

  1. Preparation of release v0.5.14

    The commit includes preparations for the release v0.5.14 including go
    fmt, release notes and updates to TODO.md.
    ulikunitz committed Aug 28, 2025
    Configuration menu
    Copy the full SHA
    7184815 View commit details
    Browse the repository at this point in the history
Loading