From 568e0ae02951571d89dac293a957332de7bca37e 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 b5ac25b2c2c0ae..86cf3fc451cc60 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,<23.1 diff --git a/pyproject.toml b/pyproject.toml index cb60bbeb1a38ce..334e7956606bf4 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,<23.1", "python-slugify==4.0.1", "pyyaml==6.0", diff --git a/requirements.txt b/requirements.txt index 6717b9a75c28b4..1037ee9220b905 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,<23.1 python-slugify==4.0.1 pyyaml==6.0