From d4213ba74d2bf8039f7f062b49955d37a0f4ec02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Tue, 3 Mar 2026 01:26:17 +0200 Subject: [PATCH] Fixed ssize_t to Py_ssize_t CVE: CVE-2026-26209 Upstream-Status: Backport [https://github.com/agronholm/cbor2/commit/53521e7ca96c7a19f8a529fe59ef566212a24b3f] (cherry picked from commit 53521e7ca96c7a19f8a529fe59ef566212a24b3f) Signed-off-by: Devansh Patel --- source/decoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/decoder.h b/source/decoder.h index 4536a4a..c4ef1c1 100644 --- a/source/decoder.h +++ b/source/decoder.h @@ -22,7 +22,7 @@ typedef struct CBORDecoderObject_ { PyObject *shareables; PyObject *stringref_namespace; PyObject *str_errors; - ssize_t max_depth; + Py_ssize_t max_depth; bool immutable; Py_ssize_t shared_index; Py_ssize_t decode_depth;