Skip to content

Commit 1cebba7

Browse files
committed
release v1.2.1
1 parent 0f4f350 commit 1cebba7

3 files changed

Lines changed: 15 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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ 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. Create a new Unpacker when reading another stream.
77+
7578

7679
### Packing/unpacking of custom data types
7780

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

221224
* The extension module no longer supports Python 2.
222225
The pure Python implementation (`msgpack.fallback`) is used for Python 2.
223-
226+
224227
* msgpack 1.0.6 drops official support of Python 2.7, as pip and
225228
GitHub Action "setup-python" no longer supports Python 2.7.
226229

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)