From 2d293c19bf0d566405d1fc062444c1f42a2dd418 Mon Sep 17 00:00:00 2001 From: Mark Broadbent Date: Tue, 14 Feb 2023 20:26:52 +0000 Subject: [PATCH] Update orjson to resolve segmentation fault during JSON serialisation (#88119) Home Assistant uses orjson 3.8.5 that contains an issue[1] on musl libc platforms that causes a segmentation fault. This particularly affect Home Assistant container installations reported in #87283 and #87522. This updates the version to 3.8.6 that resolves the segmentation fault during json serialisation. [1] https://github.com/ijl/orjson/issues/335 --- homeassistant/package_constraints.txt | 2 +- pyproject.toml | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 8ad9a144a1a..ac49c02cc53 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -30,7 +30,7 @@ ifaddr==0.1.7 janus==1.0.0 jinja2==3.1.2 lru-dict==1.1.8 -orjson==3.8.5 +orjson==3.8.6 paho-mqtt==1.6.1 pillow==9.4.0 pip>=21.0,<22.4 diff --git a/pyproject.toml b/pyproject.toml index 092fdb74079..786f3f90dfc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ dependencies = [ "cryptography==39.0.1", # pyOpenSSL 23.0.0 is required to work with cryptography 39+ "pyOpenSSL==23.0.0", - "orjson==3.8.5", + "orjson==3.8.6", "pip>=21.0,<22.4", "python-slugify==4.0.1", "pyyaml==6.0", diff --git a/requirements.txt b/requirements.txt index 7d05e1bb2e7..c2404d880b8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,7 +18,7 @@ lru-dict==1.1.8 PyJWT==2.5.0 cryptography==39.0.1 pyOpenSSL==23.0.0 -orjson==3.8.5 +orjson==3.8.6 pip>=21.0,<22.4 python-slugify==4.0.1 pyyaml==6.0