[Commits] [SCM] claws branch, master, updated. 3.17.3-184-g5ff65a4

ticho at claws-mail.org ticho at claws-mail.org
Wed Jul 3 11:03:30 CEST 2019


The branch, master has been updated
       via  5ff65a47686854b082fca1fbb7b64e11e9a47e3f (commit)
      from  08293cc6790f8e465383caf9fe9e07cdadaedbe1 (commit)

Summary of changes:
 src/plugins/litehtml_viewer/lh_widget.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 5ff65a47686854b082fca1fbb7b64e11e9a47e3f
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Wed Jul 3 11:02:20 2019 +0200

    Fix a crash in litehtml plugin if one of the MIME parts has no Content-ID

diff --git a/src/plugins/litehtml_viewer/lh_widget.cpp b/src/plugins/litehtml_viewer/lh_widget.cpp
index 7f87b0d..fb2d2a6 100644
--- a/src/plugins/litehtml_viewer/lh_widget.cpp
+++ b/src/plugins/litehtml_viewer/lh_widget.cpp
@@ -447,8 +447,9 @@ GdkPixbuf *lh_widget::get_local_image(const litehtml::tstring url) const
 		size_t len = strlen(name);
 
 		/* p->id is in format "<partname>" */
-		if (!strncasecmp(name, p->id + 1, len) &&
+		if (p->id != NULL &&
 				strlen(p->id) >= len + 2 &&
+				!strncasecmp(name, p->id + 1, len) &&
 				*(p->id + len + 1) == '>') {
 			GInputStream *stream;
 			GError *error = NULL;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list