Skip to content

v0.6.1: find an xz stream at any offset

Choose a tag to compare

@kenshaw kenshaw released this 15 Nov 10:16
· 18 commits to main since this release

This release fixes the walker for xz data, and changes no answer of the package magic.

  • The walker finds an xz stream at any offset. v0.6.0 missed a stream that started further into the data than its own length, because it copied a bug of binwalk: since a commit after its release 3.1.0, binwalk compares the absolute offset of the next stream with the bytes that follow the match. The bug is reported to binwalk as ReFirmLabs/binwalk#982.
  • The oracle of the test module carries the same fix as a patch, so the gates still compare the walker with binwalk (D59).
  • cmd/walk says that it has no decoder of xz, lzma or zstd. Its module requires no other module, so it cannot import compress/xz and compress/zstd, as a program of its own does.

compress/xz and compress/zstd did not change, and stay at v0.6.0.