diff options
author | Richard Hughes <richard@hughsie.com> | 2018-05-21 15:16:33 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2018-05-21 15:30:15 +0100 |
commit | d06e8884439b9574c1921a81988e2f96beb0c8e9 (patch) | |
tree | afee4f49a8f26c5a56123755370d0ad257374a4a | |
parent | b1489e10d6cfa536150e06f49fb9c9fcac4a9d00 (diff) | |
download | appstream-glib-d06e8884439b9574c1921a81988e2f96beb0c8e9.tar.gz |
trivial: Don't crash when validating <description/>
-rw-r--r-- | libappstream-glib/as-app.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index 11556e6..3675835 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -4983,6 +4983,8 @@ as_app_node_parse_child (AsApp *app, GNode *n, guint32 flags, if (n->children == NULL) { /* pre-formatted */ priv->problems |= AS_APP_PROBLEM_PREFORMATTED_DESCRIPTION; + if (as_node_get_data (n) == NULL) + break; as_app_set_description (app, as_node_get_attribute (n, "xml:lang"), as_node_get_data (n)); |