projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08293cc
)
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>
Wed, 3 Jul 2019 09:02:20 +0000
(11:02 +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 7f87b0d4def194fa92611d106b0ff9498cc00368..fb2d2a640537a93846ed3eb891643cf26a51fb0e 100644
(file)
--- 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;