projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7734bcf
)
Fix NULL pointer dereference in Atom parser.
author
Andrej Kacian
<ticho@claws-mail.org>
Sun, 21 Aug 2016 19:36:12 +0000
(21:36 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Sun, 21 Aug 2016 19:36:12 +0000
(21:36 +0200)
Closes bug #3676.
src/plugins/rssyl/libfeed/parser_atom10.c
patch
|
blob
|
history
diff --git
a/src/plugins/rssyl/libfeed/parser_atom10.c
b/src/plugins/rssyl/libfeed/parser_atom10.c
index 0ede945a19a7b368df89ae1e38ff613d100f4115..c463be67355ecffe798fcdbe65a7bcb37f003330 100644
(file)
--- a/
src/plugins/rssyl/libfeed/parser_atom10.c
+++ b/
src/plugins/rssyl/libfeed/parser_atom10.c
@@
-107,8
+107,9
@@
void feed_parser_atom10_start(void *data, const gchar *el, const gchar **attr)
}
}
} else if (ctx->depth >= 3) {
- if (ctx->curitem->xhtml_content
- && ctx->location == FEED_LOC_ATOM10_CONTENT) {
+ if (ctx->location == FEED_LOC_ATOM10_CONTENT
+ && ctx->curitem != NULL
+ && ctx->curitem->xhtml_content) {
guint i;
GString *txt = ctx->xhtml_str;
g_string_append_c(txt, '<');