15
0
forked from pool/python-orjson

Fix write outsize of allocated memory on json dump

Add CVE-2025-67221.patch to fix write outsize of allocated memory
on json dump (bsc#1257121, gh#ijl/orjson#637)
This commit is contained in:
2026-01-26 09:53:38 +01:00
parent 3346e0e69c
commit 00f03220b9
3 changed files with 54 additions and 1 deletions

View File

@@ -29,6 +29,8 @@ Source1: vendor.tar.xz
Source2: https://files.pythonhosted.org/packages/source/o/orjson/orjson-%{version}.tar.gz
Source3: devendor-sdist.sh
Source4: PACKAGING_README.md
# PATCH-FIX-OPENSUSE CVE-2025-67221.patch gh#ijl/orjson#637
Patch0: CVE-2025-67221.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module maturin >= 1}
BuildRequires: %{python_module pip}
@@ -53,7 +55,7 @@ orjson is a fast JSON library for Python.
It benchmarks as the fastest Python library for JSON.
%prep
%autosetup -a1 -n orjson-%{version}
%autosetup -p1 -a1 -n orjson-%{version}
%build
%pyproject_wheel