summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-cbor2_5.9.0.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2026-03-26 19:56:00 +0800
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-03-27 09:08:56 -0700
commitf2cfe8d06923218f90b2e97376355a0d1aed16fe (patch)
tree0b61ffb23405886c5b150b5f4a3c9df0a86f6308 /meta-python/recipes-devtools/python/python3-cbor2_5.9.0.bb
parent3490811436ef9d27a32b5a881c494b8f3583d2b2 (diff)
downloadmeta-openembedded-f2cfe8d06923218f90b2e97376355a0d1aed16fe.tar.gz
python3-cbor2: upgrade 5.8.0 -> 5.9.0
Changelog: ========= - Added the max_depth decoder parameter to limit the maximum allowed nesting level of containers, with a default value of 400 levels (CVE-2026-26209) - Changed the default read_size from 4096 to 1 for backwards compatibility. The buffered reads introduced in 5.8.0 could cause issues when code needs to access the stream position after decoding. Users can opt-in to faster decoding by passing read_size=4096 when they don't need to access the stream directly after decoding. Added a direct read path for read_size=1 to avoid buffer management overhead. - Fixed C encoder not respecting string referencing when encoding string-type datetimes (tag 0) - Fixed a missed check for an exception in the C implementation of CBOREncoder.encode_shared() - Fixed two reference/memory leaks in the C extension's long string decoder - Fixed C decoder ignoring the str_errors setting when decoding strings, and improved string decoding performance by using stack allocation for small strings and eliminating unnecessary conditionals. Benchmarks show 9-17% faster deserialization. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-cbor2_5.9.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-cbor2_5.9.0.bb20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-cbor2_5.9.0.bb b/meta-python/recipes-devtools/python/python3-cbor2_5.9.0.bb
new file mode 100644
index 0000000000..42d661ead3
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-cbor2_5.9.0.bb
@@ -0,0 +1,20 @@
1DESCRIPTION = "An implementation of RFC 7049 - Concise Binary Object Representation (CBOR)."
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a79e64179819c7ce293372c059f1dbd8"
4DEPENDS += "python3-setuptools-scm-native"
5
6SRC_URI[sha256sum] = "85c7a46279ac8f226e1059275221e6b3d0e370d2bb6bd0500f9780781615bcea"
7
8inherit pypi python_setuptools_build_meta ptest-python-pytest
9
10RDEPENDS:${PN}-ptest += " \
11 python3-hypothesis \
12 python3-unixadmin \
13"
14RDEPENDS:${PN} += " \
15 python3-datetime \
16"
17
18CVE_PRODUCT = "cbor2"
19
20BBCLASSEXTEND = "native nativesdk"