Skip to content

support msgpack 1.2.3 (1.4-maint) - #10469

Merged
ThomasWaldmann merged 1 commit into
borgbackup:1.4-maintfrom
ThomasWaldmann:msgpack-123-14
Sep 29, 2026
Merged

ThomasWaldmann merged 1 commit into
borgbackup:1.4-maintfrom
ThomasWaldmann:msgpack-123-14

Conversation

@ThomasWaldmann

Copy link
Copy Markdown
Member

Allow msgpack 1.2.3 (released 2026-09-29) in pyproject.toml and is_supported_msgpack().

msgpack 1.2.3 fixes, in the C extension:

  • memory leaks when map key validation or container hooks fail (GHSA-j586-36cw-2gc2)
  • a use-after-free when cleaning up an incomplete or failed Unpacker.skip()

Behaviour change checked: the C Unpacker now raises ValueError when switching between unpack, skip, header readers or read_bytes() while an object is incomplete, and rejects re-entrant use. borg 1.4 only uses feed() plus unpack()/iteration, and RobustUnpacker creates a fresh Unpacker for each resync attempt, so borg is not affected.

Tested locally (macOS, Python 3.13, msgpack 1.2.3 C extension): full testsuite, 1389 passed, 368 skipped.

🤖 Generated with Claude Code

msgpack 1.2.3 brings fixes relevant to borg's usage of the C extension:
memory leaks when map key validation or container hooks fail
(GHSA-j586-36cw-2gc2) and a use-after-free when cleaning up an
incomplete Unpacker.skip().

The C Unpacker now raises ValueError when switching between unpack,
skip, header readers or read_bytes() while an object is incomplete.
borg only uses feed() plus unpack()/iteration (and RobustUnpacker
creates a fresh Unpacker on each resync attempt), so this does not
affect borg.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.11%. Comparing base (94d840a) to head (084f3fb).
⚠️ Report is 1 commits behind head on 1.4-maint.

Additional details and impacted files
@@              Coverage Diff              @@
##           1.4-maint   #10469      +/-   ##
=============================================
+ Coverage      82.09%   82.11%   +0.01%     
=============================================
  Files             38       38              
  Lines          11479    11479              
  Branches        1808     1808              
=============================================
+ Hits            9424     9426       +2     
+ Misses          1469     1467       -2     
  Partials         586      586              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@ThomasWaldmann
ThomasWaldmann merged commit 41cb65b into borgbackup:1.4-maint Sep 29, 2026
15 checks passed
@ThomasWaldmann
ThomasWaldmann deleted the msgpack-123-14 branch September 29, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant