Visitar URL original
release v1.2.1 by methane · Pull Request #698 · msgpack/msgpack-python · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
release v1.2.1
  • Loading branch information
methane committed Jun 18, 2026
commit 1cebba76e81cbff543c7982def4206ab3c5c9579
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Comment thread
methane marked this conversation as resolved.
Outdated


### Packing/unpacking of custom data types

Expand Down Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions msgpack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down
Loading