File libofx-CVE-2019-9656.patch of Package libofx.35321

From 15d0511253d7a8011ab7fa8d1e74c265d17d1b44 Mon Sep 17 00:00:00 2001
From: Christian Stimming <christian@cstimming.de>
Date: Mon, 30 Sep 2019 22:30:30 +0200
Subject: [PATCH] Issue #22: Fix obvious null-pointer dereferencing error

---
 lib/ofx_sgml.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ofx_sgml.cpp b/lib/ofx_sgml.cpp
index a5a105a..12d04a7 100644
--- a/lib/ofx_sgml.cpp
+++ b/lib/ofx_sgml.cpp
@@ -126,7 +126,7 @@ public:
       {
         message_out (PARSER, "Element " + identifier + " found");
         //BANKTRANLIST ignored, we will process it's attributes directly inside the STATEMENT,
-        if (curr_container_element->type != "STATEMENT")
+        if (curr_container_element && curr_container_element->type != "STATEMENT")
         {
           message_out(ERROR, "Element " + identifier + " found while not inside a STATEMENT container");
         }
-- 
2.46.0

openSUSE Build Service is sponsored by