Blame patches/fribidi/CVE-2022-25310.patch

22c622
From 175850b03e1af251d705c1d04b2b9b3c1c06e48f Mon Sep 17 00:00:00 2001
22c622
From: Akira TAGOH <akira@tagoh.org>
22c622
Date: Thu, 17 Feb 2022 19:06:10 +0900
22c622
Subject: [PATCH] Fix SEGV issue in fribidi_remove_bidi_marks
22c622
22c622
Escape from fribidi_remove_bidi_marks() immediately if str is null.
22c622
22c622
This fixes https://github.com/fribidi/fribidi/issues/183
22c622
---
22c622
 lib/fribidi.c | 2 +-
22c622
 1 file changed, 1 insertion(+), 1 deletion(-)
22c622
22c622
diff --git a/lib/fribidi.c b/lib/fribidi.c
22c622
index f5da0da..70bdab2 100644
22c622
--- a/lib/fribidi.c
22c622
+++ b/lib/fribidi.c
22c622
@@ -74,7 +74,7 @@ fribidi_remove_bidi_marks (
22c622
   fribidi_boolean status = false;
22c622
 
22c622
   if UNLIKELY
22c622
-    (len == 0)
22c622
+    (len == 0 || str == NULL)
22c622
     {
22c622
       status = true;
22c622
       goto out;