Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.2:Update
appstream-glib.5285
appstream-glib-validator-crash-processing-li.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File appstream-glib-validator-crash-processing-li.patch of Package appstream-glib.5285
From d5a8efd984ad808e869338babb14990e2d1a7f9e Mon Sep 17 00:00:00 2001 From: Richard Hughes <richard@hughsie.com> Date: Thu, 8 Oct 2015 14:39:19 +0100 Subject: [PATCH] Fix crash in validator when processing '<li></li>' --- libappstream-glib/as-app-validate.c | 8 ++++++++ 1 file changed, 8 insertions(+) Index: appstream-glib-0.2.6/libappstream-glib/as-app-validate.c =================================================================== --- appstream-glib-0.2.6.orig/libappstream-glib/as-app-validate.c 2014-08-29 16:51:25.000000000 +0200 +++ appstream-glib-0.2.6/libappstream-glib/as-app-validate.c 2016-06-28 12:15:02.409300151 +0200 @@ -184,6 +184,14 @@ as_app_validate_description_li (const gc require_sentence_case = FALSE; } + /* empty */ + if (text == NULL) { + ai_app_validate_add (helper, + AS_PROBLEM_KIND_STYLE_INCORRECT, + "<li> is empty"); + return; + } + str_len = strlen (text); if (str_len < length_li_min) { ai_app_validate_add (helper->probs,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor