]>
granicus.if.org Git - libexpat/log
Sebastian Pipping [Tue, 29 Aug 2017 20:35:44 +0000 (22:35 +0200)]
Streamline preprocessor indentation
Rhodri James [Tue, 29 Aug 2017 15:14:51 +0000 (16:14 +0100)]
Split long string in test_nsalloc_realloc_long_context_in_dtd()
C99 only requires compilers to handle string literals up to 4095
characters long. Split the parse string so that it is below this
limit.
Rhodri James [Tue, 29 Aug 2017 15:08:09 +0000 (16:08 +0100)]
Split long string in test_nsalloc_long_namespace()
C99 compilers are only obliged to cope with 4095 character strings
literals. Split the parse string so that it is under this limit.
Rhodri James [Tue, 29 Aug 2017 15:03:49 +0000 (16:03 +0100)]
Split long string in test_ns_extremely_long_prefix()
C99 compilers are only required to cope with 4095 character strings.
Split the parse text in two to keep it under that limit.
Rhodri James [Tue, 29 Aug 2017 14:01:56 +0000 (15:01 +0100)]
Fix test_default_doctype_handler() to work in UTF-16 builds
Rhodri James [Fri, 25 Aug 2017 11:43:09 +0000 (12:43 +0100)]
Remove CharData_{Append|Check}String functions
Mixing XML_Char and char strings is a bad idea, and trying to put
chars into an XML_Char array tends not to work as you might hope.
Removing these functions removes the temptation to break builds.
Rhodri James [Fri, 25 Aug 2017 11:39:32 +0000 (12:39 +0100)]
Use correct format for XML_Char in error output
Only actually invoked when XML_Char is char, but it keeps the
compiler quiet
Rhodri James [Fri, 25 Aug 2017 10:38:17 +0000 (11:38 +0100)]
Fix test_default_current() to work in UTF-16 builds
Rhodri James [Thu, 24 Aug 2017 16:31:49 +0000 (17:31 +0100)]
Fix test_end_element_events() to work in UTF-16 builds
Rhodri James [Thu, 24 Aug 2017 16:23:20 +0000 (17:23 +0100)]
Fix test_line_and_column_numbers_inside_handlers() for UTF-16
Use structured data in the event handlers for this test to avoid
problems converting char strings to XML_Char strings.
Sebastian Pipping [Tue, 29 Aug 2017 20:59:36 +0000 (22:59 +0200)]
CMake: Add missing integration of tests/structdata.c
Rhodri James [Thu, 24 Aug 2017 16:22:21 +0000 (17:22 +0100)]
Add support for structured data in test handlers
Rhodri James [Thu, 24 Aug 2017 14:53:52 +0000 (15:53 +0100)]
Fix test_alloc_realloc_nested_groups() to work in UTF-16 builds
Rhodri James [Thu, 24 Aug 2017 14:43:58 +0000 (15:43 +0100)]
Fix test_alloc_nested_groups() to work in UTF-16 builds
Rhodri James [Thu, 24 Aug 2017 14:37:13 +0000 (15:37 +0100)]
Fix test_nsalloc_long_attr_prefix() to work in UTF-16
Rhodri James [Wed, 23 Aug 2017 12:34:04 +0000 (13:34 +0100)]
Fix test_nsalloc_prefixed_element() to work in UTF-16 builds
Rhodri James [Wed, 23 Aug 2017 12:33:09 +0000 (13:33 +0100)]
Fix test_nsalloc_long_systemid_in_ext() to work in UTF-16 builds
Rhodri James [Wed, 23 Aug 2017 11:17:10 +0000 (12:17 +0100)]
Fix test_nsalloc_long_default_in_ext() to work in UTF-16 builds
Rhodri James [Wed, 23 Aug 2017 11:16:24 +0000 (12:16 +0100)]
Fix test_nsalloc_realloc_long_context_in_dtd() to work in UTF-16
Rhodri James [Wed, 23 Aug 2017 11:12:33 +0000 (12:12 +0100)]
Fix test_nsalloc_realloc_long_ge_name() to work in UTF-16 builds
Rhodri James [Wed, 23 Aug 2017 11:11:29 +0000 (12:11 +0100)]
Fix context_realloc_test() to work in UTF-16 builds
Rhodri James [Wed, 23 Aug 2017 11:08:40 +0000 (12:08 +0100)]
Fix test_nsalloc_long_context() to work in UTF-16 builds
Rhodri James [Wed, 23 Aug 2017 11:06:03 +0000 (12:06 +0100)]
Fix test_nsalloc_long_element() to work for UTF-16 builds
Rhodri James [Wed, 23 Aug 2017 10:56:41 +0000 (11:56 +0100)]
Fix test_alloc_long_notation() to work in UTF-16 builds
Rhodri James [Wed, 23 Aug 2017 10:53:25 +0000 (11:53 +0100)]
Fix test_alloc_long_base() to work in UTF-16 builds
Rhodri James [Wed, 23 Aug 2017 10:44:57 +0000 (11:44 +0100)]
Fix test_alloc_set_base() to work for UTF-16 builds
Rhodri James [Wed, 23 Aug 2017 10:43:40 +0000 (11:43 +0100)]
Fix test_alloc_dtd_default_handling() to work in UTF-16 builds
Rhodri James [Wed, 23 Aug 2017 10:41:57 +0000 (11:41 +0100)]
Fix unknown_released_encoding_handler() to work in UTF-16 builds
Rhodri James [Wed, 23 Aug 2017 10:06:43 +0000 (11:06 +0100)]
Fix test_misc_utf16le() to work in UTF-16 builds
Rhodri James [Thu, 24 Aug 2017 12:06:29 +0000 (13:06 +0100)]
Fix test_misc_attribute_leak() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 18:05:07 +0000 (19:05 +0100)]
Fix test_misc_version() for various XML_UNICODE issues.
Rhodri James [Tue, 22 Aug 2017 17:57:50 +0000 (18:57 +0100)]
Fix test_misc_alloc_create_parser_with_encoding() to work in UTF-16
Rhodri James [Tue, 22 Aug 2017 17:46:03 +0000 (18:46 +0100)]
Fix test_ns_utf16_doctype() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 17:43:32 +0000 (18:43 +0100)]
Fix test_ns_utf16_element_leafname() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 17:42:28 +0000 (18:42 +0100)]
Fix test_ns_utf16_leafname() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 17:41:20 +0000 (18:41 +0100)]
Fix test_ns_unknown_encoding_success() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 17:40:13 +0000 (18:40 +0100)]
Fix test_ns_long_element() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 17:38:10 +0000 (18:38 +0100)]
Fix test_ns_prefix_with_empty_uri_4() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 17:26:40 +0000 (18:26 +0100)]
Don't mix character types in namespace overwrite tests
Rhodri James [Tue, 22 Aug 2017 17:22:31 +0000 (18:22 +0100)]
Fix test_return_ns_triplet() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 17:18:22 +0000 (18:18 +0100)]
Fix triplet checker functions to use XML_Char correctly
Rhodri James [Tue, 22 Aug 2017 17:14:59 +0000 (18:14 +0100)]
Fix namespace test setup routine to work properly in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 17:13:12 +0000 (18:13 +0100)]
Fix test_entity_public_utf16_le() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 17:12:09 +0000 (18:12 +0100)]
Fix test_entity_public_utf16_be() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 17:09:59 +0000 (18:09 +0100)]
Fix test_entity_in_utf16_le_attr() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 17:05:16 +0000 (18:05 +0100)]
Fix test_entity_in_utf16_be_attr() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 17:02:22 +0000 (18:02 +0100)]
Fix test_utf16_pe() to work for UTF-16 builds of the library
Rhodri James [Tue, 22 Aug 2017 17:00:34 +0000 (18:00 +0100)]
Fix accumulate_entity_decl() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 16:59:32 +0000 (17:59 +0100)]
Fix test_utf16_second_attr() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 16:58:41 +0000 (17:58 +0100)]
Fix test_utf16_attribute() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 16:57:43 +0000 (17:57 +0100)]
Fix test_trailing_spaces_in_elements() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 16:56:40 +0000 (17:56 +0100)]
Fix record_element_end_handler() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 16:49:32 +0000 (17:49 +0100)]
Fix test_utf8_in_cdata_section_2() to work in UTF-16 builds
Rhodri James [Thu, 24 Aug 2017 12:01:14 +0000 (13:01 +0100)]
Fix test_long_ascii_attribute() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 16:47:06 +0000 (17:47 +0100)]
Fix test_long_latin1_attribute() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 16:12:58 +0000 (17:12 +0100)]
Fix test_utf8_in_cdata_section() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 16:07:10 +0000 (17:07 +0100)]
Fix test_ext_entity_utf8_non_bom() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 16:04:03 +0000 (17:04 +0100)]
Fix test_ext_entity_utf16_le() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 16:02:13 +0000 (17:02 +0100)]
Fix test_ext_entity_utf16_be() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:59:55 +0000 (16:59 +0100)]
Fix test_ext_entity_latin1_utf16be_bom2() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:57:03 +0000 (16:57 +0100)]
Fix test_ext_entity_latin1_utf16le_bom2() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:55:16 +0000 (16:55 +0100)]
Fix test_ext_entity_latin1_utf16be_bom() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:53:19 +0000 (16:53 +0100)]
Fix test_ext_entity_latin1_utf16le_bom() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:35:37 +0000 (16:35 +0100)]
Fix test_unknown_ascii_encoding_ok() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:34:36 +0000 (16:34 +0100)]
Fix test_unknown_encoding_long_name_2() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:33:51 +0000 (16:33 +0100)]
Fix test_unknown_encoding_long_name_1() to work for UTF-16
Rhodri James [Tue, 22 Aug 2017 15:32:03 +0000 (16:32 +0100)]
Fix MiscEncodingHandler() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:26:02 +0000 (16:26 +0100)]
Fix up UTF-16 comment tests to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:24:40 +0000 (16:24 +0100)]
Fix up accumulate_pi_characters() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:14:40 +0000 (16:14 +0100)]
Fix test_comment_handled_in_default() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:13:31 +0000 (16:13 +0100)]
Fix test_pi_handled_in_default() to work in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:11:17 +0000 (16:11 +0100)]
Fix test_param_entity_with_trailing_cr() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 15:03:35 +0000 (16:03 +0100)]
Fix test_suspend_resume_parameter_entity() to work in UTF-16
Rhodri James [Tue, 22 Aug 2017 14:59:45 +0000 (15:59 +0100)]
Fix test_suspend_resume_internal_entity() to work for UTF-16
Rhodri James [Tue, 22 Aug 2017 14:57:58 +0000 (15:57 +0100)]
Fix start_element_suspender() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:54:49 +0000 (15:54 +0100)]
Fix up selective_aborting_default_handler() for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:50:10 +0000 (15:50 +0100)]
Fix external_entity_devaluer() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:48:21 +0000 (15:48 +0100)]
Fix external_entity_public() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:42:52 +0000 (15:42 +0100)]
Fix test_nested_groups() to work with UTF-16
Rhodri James [Tue, 22 Aug 2017 14:41:15 +0000 (15:41 +0100)]
Fix record_element_start_handler() to use XML_Char correctly
Rhodri James [Tue, 22 Aug 2017 14:35:41 +0000 (15:35 +0100)]
Fix test_predefined_entity_redefinition() to work for UTF-16
Rhodri James [Tue, 22 Aug 2017 14:31:46 +0000 (15:31 +0100)]
Fix test_attribute_enum_value() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:26:03 +0000 (15:26 +0100)]
Fix external_entity_value_aborter() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:24:45 +0000 (15:24 +0100)]
Fix external_entity_not_standalone() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:19:36 +0000 (15:19 +0100)]
Fix external_entity_valuer() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:18:22 +0000 (15:18 +0100)]
Fix external_entity_param() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:14:33 +0000 (15:14 +0100)]
Fix test_ignore_section_utf16_be() for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:13:26 +0000 (15:13 +0100)]
Fix test_ignore_section_utf16() for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:12:13 +0000 (15:12 +0100)]
Fix test_ignore_section() to work correctly for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:06:18 +0000 (15:06 +0100)]
Fix test_predefined_entities() to work correctly with UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 13:59:01 +0000 (14:59 +0100)]
Remove speculative test from byte_character_handler().
byte_character_handler() used to test that the string pointer `s`
passed to it was at the correct offset ino the input buffer. This
is not guaranteed to be the case, and definitely won't be the case
if the input encoding has a different minimum bytes-per-character
to the internal encoding.
Rhodri James [Tue, 22 Aug 2017 13:53:04 +0000 (14:53 +0100)]
Fix external_entity_good_cdata_ascii() to work with UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 13:47:20 +0000 (14:47 +0100)]
Fix rsqb_handler() to work correctly in UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 13:45:37 +0000 (14:45 +0100)]
Fix cr_cdata_handler() to work correctly for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 13:42:12 +0000 (14:42 +0100)]
Fix test_cdata_default() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 13:37:01 +0000 (14:37 +0100)]
Fix test_attributes() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 13:33:47 +0000 (14:33 +0100)]
Fix counting_start_element_handler() to use XML_Char correctly
Rhodri James [Tue, 22 Aug 2017 13:22:11 +0000 (14:22 +0100)]
Fix test_set_base() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 13:16:56 +0000 (14:16 +0100)]
Fix test_multichar_cdata_utf16() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 13:08:05 +0000 (14:08 +0100)]
Fix test_long_cdata_utf16() to work for UTF-16 builds