Projects
openEuler:24.03:SP1:Everything
expat
_service:tar_scm:backport-006-CVE-2023-52425.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-006-CVE-2023-52425.patch of Package expat
From 25749ff3dad2216dfd7596498b592747a3d9305e Mon Sep 17 00:00:00 2001 From: Snild Dolkow <snild@sony.com> Date: Thu, 31 Aug 2023 16:14:38 +0200 Subject: [PATCH] tests: Set isFinal=1 in line/column-number-after-error tests Reference: https://github.com/libexpat/libexpat/pull/745/commits/d4105a9080271a8d4996d2454f89be9992cb268a Conflict: remove basic_tests.c change runtests.c --- tests/runtests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/runtests.c b/tests/runtests.c index 45ba5d59..d367271f 100644 --- a/tests/runtests.c +++ b/tests/runtests.c @@ -1139,7 +1139,7 @@ START_TEST(test_line_number_after_error) { " <b>\n" " </a>"; /* missing </b> */ XML_Size lineno; - if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_FALSE) + if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) != XML_STATUS_ERROR) fail("Expected a parse error"); @@ -1158,7 +1158,7 @@ START_TEST(test_column_number_after_error) { " <b>\n" " </a>"; /* missing </b> */ XML_Size colno; - if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_FALSE) + if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) != XML_STATUS_ERROR) fail("Expected a parse error"); -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2