From 2cee1061e2fec10633c3f02a961dabf95e85910a Mon Sep 17 00:00:00 2001 From: Snild Dolkow Date: Thu, 24 Aug 2023 14:10:58 +0200 Subject: [PATCH] tests: Set isFinal in test_column_number_after_parse Without this, parsing of the end tag may be deferred, yielding an unexpected column number. --- expat/tests/basic_tests.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expat/tests/basic_tests.c b/expat/tests/basic_tests.c index 71a5c0d3..9a06ad55 100644 --- a/expat/tests/basic_tests.c +++ b/expat/tests/basic_tests.c @@ -18,6 +18,7 @@ Copyright (c) 2019 David Loffredo Copyright (c) 2020 Tim Gates Copyright (c) 2021 Dong-hee Na + Copyright (c) 2023 Sony Corporation / Snild Dolkow Licensed under the MIT license: Permission is hereby granted, free of charge, to any person obtaining @@ -613,7 +614,7 @@ START_TEST(test_column_number_after_parse) { const char *text = ""; 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) xml_failure(g_parser); colno = XML_GetCurrentColumnNumber(g_parser);