projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8cb6c4
)
Fix a crash in litehtml plugin if one of the MIME parts has no Content-ID
author
Andrej Kacian
<ticho@claws-mail.org>
Wed, 3 Jul 2019 09:02:20 +0000
(11:02 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Thu, 8 Aug 2019 17:33:43 +0000
(19:33 +0200)
src/plugins/litehtml_viewer/lh_widget.cpp
patch
|
blob
|
history
diff --git
a/src/plugins/litehtml_viewer/lh_widget.cpp
b/src/plugins/litehtml_viewer/lh_widget.cpp
index f02d2089bd75a122101fa8854a5d7f102ea5e174..0d3b4be4432fe7c26936296aefbd294136bafa25 100644
(file)
--- a/
src/plugins/litehtml_viewer/lh_widget.cpp
+++ b/
src/plugins/litehtml_viewer/lh_widget.cpp
@@
-475,8
+475,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;