Skip to content

enh(SevenZip): Upgrade bundled LZMA SDK from 9.22 to 25.01#5094

Merged
matejk merged 1 commit intomainfrom
upgrade-lzma-sdk-25.01
Dec 16, 2025
Merged

enh(SevenZip): Upgrade bundled LZMA SDK from 9.22 to 25.01#5094
matejk merged 1 commit intomainfrom
upgrade-lzma-sdk-25.01

Conversation

@matejk
Copy link
Copy Markdown
Contributor

@matejk matejk commented Dec 16, 2025

Summary

  • Upgrades bundled LZMA SDK from version 9.22 (2011) to 25.01 (2025)
  • Updates SevenZip module to use the new SDK API
  • Adds missing file open support for non-Windows platforms (bug fix)

Changes

LZMA SDK (dependencies/7zip)

  • Major version upgrade spanning 14 years of improvements
  • 7zIn.c renamed to 7zArcIn.c
  • Types.h renamed to 7zTypes.h
  • New files added: Compiler.h, Precomp.h, 7zWindows.h, and others
  • Delta.c now required for decoding (added to CMakeLists.txt)

SevenZip Module (SevenZip/src/Archive.cpp)

  • Updated to use new CLookToRead2 API (replaces CLookToRead)
  • Updated stream access from .s to .vt members
  • Updated file info access to use accessor macros (SzArEx_IsDir, SzArEx_GetFileSize, SzBitWithVals_Check)
  • Added InFile_Open call for non-Windows platforms (was missing)

Sources

Testing

  • SevenZip module compiles successfully
  • un7zip sample application tested:
    • Archive listing works correctly
    • Archive extraction works correctly (tested with LZMA SDK 25.01 archive itself)

@matejk matejk added this to the Release 1.15.0 milestone Dec 16, 2025
@matejk matejk merged commit 9d2fb78 into main Dec 16, 2025
80 checks passed
@matejk matejk deleted the upgrade-lzma-sdk-25.01 branch December 16, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant