From 5434af81e90f91125e6703f39c0f442e5feee1d8dfdd8b642578063f9e49eb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Thu, 7 Mar 2019 21:48:08 +0000 Subject: [PATCH] - update to 0.6.1 * unpackb(data) configures max_*_len options from len(data), instead of static default sizes. * Unpacker(max_buffer_len=N) configures max_*_len options from N, instead of static default sizes. * max_bin_len, max_str_len, and max_ext_len are deprecated. * unpacker: Default value of input limits are smaller than before to avoid DoS attack * Unpacker doesn't wrap underlaying ValueError (including UnicodeError) into UnpackValueError. If you want to catch all exception during unpack, you need to use try ... except Exception with minimum try code block. * PackValueError and PackOverflowError are also removed. You need to catch normal ValueError and OverflowError. * Unpacker has strict_map_key option now. When it is true, only bytes and str (unicode in Python 2) are allowed for map keys. * Extension modules are merged. There is msgpack._cmsgpack instead of msgpack._packer and msgpack._unpacker. * Add Unpacker.getbuffer() method. * unpacker: msgpack.StackError is raised when input data contains too nested data * unpacker: msgpack.FormatError is raised when input data is not valid msgpack format. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-msgpack?expand=0&rev=16 --- msgpack-0.5.6.tar.gz | 3 --- msgpack-0.6.1.tar.gz | 3 +++ python-msgpack.changes | 24 ++++++++++++++++++++++++ python-msgpack.spec | 2 +- 4 files changed, 28 insertions(+), 4 deletions(-) delete mode 100644 msgpack-0.5.6.tar.gz create mode 100644 msgpack-0.6.1.tar.gz diff --git a/msgpack-0.5.6.tar.gz b/msgpack-0.5.6.tar.gz deleted file mode 100644 index a41f12a..0000000 --- a/msgpack-0.5.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0ee8c8c85aa651be3aa0cd005b5931769eaa658c948ce79428766f1bd46ae2c3 -size 138292 diff --git a/msgpack-0.6.1.tar.gz b/msgpack-0.6.1.tar.gz new file mode 100644 index 0000000..e35b815 --- /dev/null +++ b/msgpack-0.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4008c72f5ef2b7936447dcb83db41d97e9791c83221be13d5e19db0796df1972 +size 118812 diff --git a/python-msgpack.changes b/python-msgpack.changes index 636cf90..72f236c 100644 --- a/python-msgpack.changes +++ b/python-msgpack.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Thu Mar 7 21:33:19 UTC 2019 - Ondřej Súkup + +- update to 0.6.1 + * unpackb(data) configures max_*_len options from len(data), instead + of static default sizes. + * Unpacker(max_buffer_len=N) configures max_*_len options from N, instead + of static default sizes. + * max_bin_len, max_str_len, and max_ext_len are deprecated. + * unpacker: Default value of input limits are smaller than before to + avoid DoS attack + * Unpacker doesn't wrap underlaying ValueError (including UnicodeError) + into UnpackValueError. If you want to catch all exception during unpack, + you need to use try ... except Exception with minimum try code block. + * PackValueError and PackOverflowError are also removed. You need to catch + normal ValueError and OverflowError. + * Unpacker has strict_map_key option now. When it is true, only bytes + and str (unicode in Python 2) are allowed for map keys. + * Extension modules are merged. There is msgpack._cmsgpack instead + of msgpack._packer and msgpack._unpacker. + * Add Unpacker.getbuffer() method. + * unpacker: msgpack.StackError is raised when input data contains too nested data + * unpacker: msgpack.FormatError is raised when input data is not valid msgpack format. + ------------------------------------------------------------------- Tue Jan 29 17:19:51 UTC 2019 - alarrosa@suse.com diff --git a/python-msgpack.spec b/python-msgpack.spec index 52a47f7..ba57bdb 100644 --- a/python-msgpack.spec +++ b/python-msgpack.spec @@ -21,7 +21,7 @@ %define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-msgpack -Version: 0.5.6 +Version: 0.6.1 Release: 0 Summary: MessagePack (de)serializer License: Apache-2.0