Skip to content

Commit 448d43f

Browse files
methaneCopilot
andauthored
release v1.2.1 (#698)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 2c56ddb commit 448d43f

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# 1.2.1
2+
3+
Release Date: 2026-06-19
4+
5+
Fix a segfault when calling `Unpacker.unpack()` or `Unpacker.skip()` after an unpacking failure.
6+
But note that reusing the same `Unpacker` instance after an unpacking failure is not supported.
7+
Please create a new `Unpacker` instance instead. GHSA-6v7p-g79w-8964
8+
9+
110
# 1.2.0
211

312
Release Date: 2026-06-11

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ for unpacked in unpacker:
7272
print(unpacked)
7373
```
7474

75+
> [!IMPORTANT]
76+
> If `Unpacker.unpack()` stops with an exception other than `OutOfData`, that `Unpacker` cannot be reused.
77+
> Create a new `Unpacker` when reading another stream.
78+
7579

7680
### Packing/unpacking of custom data types
7781

@@ -220,7 +224,7 @@ When upgrading from msgpack-0.4 or earlier, do `pip uninstall msgpack-python` be
220224

221225
* The extension module no longer supports Python 2.
222226
The pure Python implementation (`msgpack.fallback`) is used for Python 2.
223-
227+
224228
* msgpack 1.0.6 drops official support of Python 2.7, as pip and
225229
GitHub Action "setup-python" no longer supports Python 2.7.
226230

msgpack/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from .exceptions import * # noqa: F403
55
from .ext import ExtType, Timestamp
66

7-
version = (1, 2, 0)
8-
__version__ = "1.2.0"
7+
version = (1, 2, 1)
8+
__version__ = "1.2.1"
99

1010

1111
if os.environ.get("MSGPACK_PUREPYTHON"):

0 commit comments

Comments
 (0)