From 1cebba76e81cbff543c7982def4206ab3c5c9579 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Fri, 19 Jun 2026 00:14:08 +0900 Subject: [PATCH 1/2] release v1.2.1 --- CHANGELOG.md | 9 +++++++++ README.md | 5 ++++- msgpack/__init__.py | 4 ++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a29b4b2f..b8fbd8ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# 1.2.1 + +Release Date: 2026-06-19 + +Fix a segfault when calling `Unpacker.unpack()` or `Unpacker.skip()` after an unpacking failure. +But note that reusing the same `Unpacker` instance after an unpacking failure is not supported. +Please create a new `Unpacker` instance instead. GHSA-6v7p-g79w-8964 + + # 1.2.0 Release Date: 2026-06-11 diff --git a/README.md b/README.md index 223742dd..90c3520f 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,9 @@ for unpacked in unpacker: print(unpacked) ``` +> [!IMPORTANT] +> If `Unpacker.unpack()` stops with an exception other than OutOfData, that `Unpacker` cannot be reused. Create a new Unpacker when reading another stream. + ### Packing/unpacking of custom data types @@ -220,7 +223,7 @@ When upgrading from msgpack-0.4 or earlier, do `pip uninstall msgpack-python` be * The extension module no longer supports Python 2. The pure Python implementation (`msgpack.fallback`) is used for Python 2. - + * msgpack 1.0.6 drops official support of Python 2.7, as pip and GitHub Action "setup-python" no longer supports Python 2.7. diff --git a/msgpack/__init__.py b/msgpack/__init__.py index f053abd0..eeb85afa 100644 --- a/msgpack/__init__.py +++ b/msgpack/__init__.py @@ -4,8 +4,8 @@ from .exceptions import * # noqa: F403 from .ext import ExtType, Timestamp -version = (1, 2, 0) -__version__ = "1.2.0" +version = (1, 2, 1) +__version__ = "1.2.1" if os.environ.get("MSGPACK_PUREPYTHON"): From 1cd90a10139b4e0d1989d7fea9b629f0a4f32409 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Fri, 19 Jun 2026 00:18:31 +0900 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 90c3520f..e66d4549 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,8 @@ for unpacked in unpacker: ``` > [!IMPORTANT] -> If `Unpacker.unpack()` stops with an exception other than OutOfData, that `Unpacker` cannot be reused. Create a new Unpacker when reading another stream. +> If `Unpacker.unpack()` stops with an exception other than `OutOfData`, that `Unpacker` cannot be reused. +> Create a new `Unpacker` when reading another stream. ### Packing/unpacking of custom data types