]> granicus.if.org Git - libexpat/log
libexpat
7 years agoFix external_entity_public() 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

7 years agoFix test_nested_groups() to work with UTF-16
Rhodri James [Tue, 22 Aug 2017 14:42:52 +0000 (15:42 +0100)]
Fix test_nested_groups() to work with UTF-16

7 years agoFix record_element_start_handler() to use XML_Char correctly
Rhodri James [Tue, 22 Aug 2017 14:41:15 +0000 (15:41 +0100)]
Fix record_element_start_handler() to use XML_Char correctly

7 years agoFix test_predefined_entity_redefinition() to work for UTF-16
Rhodri James [Tue, 22 Aug 2017 14:35:41 +0000 (15:35 +0100)]
Fix test_predefined_entity_redefinition() to work for UTF-16

7 years agoFix test_attribute_enum_value() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 14:31:46 +0000 (15:31 +0100)]
Fix test_attribute_enum_value() to work for UTF-16 builds

7 years agoFix external_entity_value_aborter() 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

7 years agoFix external_entity_not_standalone() 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

7 years agoFix external_entity_valuer() 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

7 years agoFix external_entity_param() 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

7 years agoFix test_ignore_section_utf16_be() 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

7 years agoFix test_ignore_section_utf16() 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

7 years agoFix test_ignore_section() to work correctly 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

7 years agoFix test_predefined_entities() to work correctly with 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

7 years agoRemove speculative test from byte_character_handler().
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.

7 years agoFix external_entity_good_cdata_ascii() to work with UTF-16 builds
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

7 years agoFix rsqb_handler() to work correctly in 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

7 years agoFix cr_cdata_handler() to work correctly for 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

7 years agoFix test_cdata_default() to work 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

7 years agoFix test_attributes() 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

7 years agoFix counting_start_element_handler() to use XML_Char correctly
Rhodri James [Tue, 22 Aug 2017 13:33:47 +0000 (14:33 +0100)]
Fix counting_start_element_handler() to use XML_Char correctly

7 years agoFix test_set_base() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 13:22:11 +0000 (14:22 +0100)]
Fix test_set_base() to work for UTF-16 builds

7 years agoFix test_multichar_cdata_utf16() 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

7 years agoFix test_long_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

7 years agoFix test_good_cdata_utf16_le() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 13:05:10 +0000 (14:05 +0100)]
Fix test_good_cdata_utf16_le() to work for UTF-16 builds

7 years agoFix test_good_cdata_utf16() to work for UTF-16 builds (ironicly)
Rhodri James [Tue, 22 Aug 2017 13:03:08 +0000 (14:03 +0100)]
Fix test_good_cdata_utf16() to work for UTF-16 builds (ironicly)

7 years agoFix test_good_cdata_ascii() to work for UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 13:02:00 +0000 (14:02 +0100)]
Fix test_good_cdata_ascii() to work for UTF-16 builds

7 years agoFix test_dtd_attr_handling() to work with UTF-16 builds
Rhodri James [Tue, 22 Aug 2017 12:47:33 +0000 (13:47 +0100)]
Fix test_dtd_attr_handling() to work with UTF-16 builds

7 years agoFix test_dtd_default_handling() to work for UTF-16
Rhodri James [Tue, 22 Aug 2017 12:39:19 +0000 (13:39 +0100)]
Fix test_dtd_default_handling() to work for UTF-16

7 years agoFix test_not_standalone_handler_accept() to work for UTF-16
Rhodri James [Tue, 22 Aug 2017 12:37:10 +0000 (13:37 +0100)]
Fix test_not_standalone_handler_accept() to work for UTF-16

7 years agoFix test_not_standalone_handler_accept() to work in UTF-16 builds
Rhodri James [Thu, 24 Aug 2017 12:31:55 +0000 (13:31 +0100)]
Fix test_not_standalone_handler_accept() to work in UTF-16 builds

7 years agoFix test_wfc_undeclared_entity_with_external_subset() for UTF-16
Rhodri James [Tue, 22 Aug 2017 12:31:55 +0000 (13:31 +0100)]
Fix test_wfc_undeclared_entity_with_external_subset() for UTF-16

7 years agoFix test_ext_entity_set_bom() to work for UTF-16
Rhodri James [Tue, 22 Aug 2017 12:22:39 +0000 (13:22 +0100)]
Fix test_ext_entity_set_bom() to work for UTF-16

7 years agoFix test_ext_entity_no_handler() to work for UTF-16
Rhodri James [Tue, 22 Aug 2017 12:21:59 +0000 (13:21 +0100)]
Fix test_ext_entity_no_handler() to work for UTF-16

7 years agoFix test_ext_entity_set_encoding to work for UTF-16
Rhodri James [Tue, 22 Aug 2017 12:17:41 +0000 (13:17 +0100)]
Fix test_ext_entity_set_encoding to work for UTF-16

7 years agoFix UnknownEncodingHandler to work with UTF-16
Rhodri James [Tue, 22 Aug 2017 12:04:55 +0000 (13:04 +0100)]
Fix UnknownEncodingHandler to work with UTF-16

7 years agoFix attribute whitespace normalization tests for UTF-16
Rhodri James [Tue, 22 Aug 2017 11:53:40 +0000 (12:53 +0100)]
Fix attribute whitespace normalization tests for UTF-16

7 years agoFix whitespace normalization tests for UTF-16
Rhodri James [Tue, 22 Aug 2017 11:48:00 +0000 (12:48 +0100)]
Fix whitespace normalization tests for UTF-16

7 years agoEnsure encoding passed to XML_SetEncoding is always const XML_Char*
Rhodri James [Fri, 4 Aug 2017 18:22:46 +0000 (19:22 +0100)]
Ensure encoding passed to XML_SetEncoding is always const XML_Char*

7 years agoFix test_utf16() to work for UTF-16 builds
Rhodri James [Fri, 4 Aug 2017 18:01:55 +0000 (19:01 +0100)]
Fix test_utf16() to work for UTF-16 builds

7 years agoFix test_utf8_false_rejection() to work in UTF-16
Rhodri James [Fri, 4 Aug 2017 17:53:58 +0000 (18:53 +0100)]
Fix test_utf8_false_rejection() to work in UTF-16

7 years agoFix test_french_utf8() to work in UTF-16
Rhodri James [Fri, 4 Aug 2017 17:49:22 +0000 (18:49 +0100)]
Fix test_french_utf8() to work in UTF-16

7 years agoFix test_french_latin1() to work in UTF-16
Rhodri James [Fri, 4 Aug 2017 17:47:19 +0000 (18:47 +0100)]
Fix test_french_latin1() to work in UTF-16

7 years agoFix test_french_charref_decimal() to work for UTF-16
Rhodri James [Fri, 4 Aug 2017 17:44:53 +0000 (18:44 +0100)]
Fix test_french_charref_decimal() to work for UTF-16

7 years agoFix test_french_charref_hexidecimal() to work for UTF-16
Rhodri James [Fri, 4 Aug 2017 17:40:01 +0000 (18:40 +0100)]
Fix test_french_charref_hexidecimal() to work for UTF-16

7 years agoFix test_latin1_umlauts() to work for UTF-16
Rhodri James [Fri, 4 Aug 2017 17:32:50 +0000 (18:32 +0100)]
Fix test_latin1_umlauts() to work for UTF-16

7 years agoFix test_danish_latin1() to handle UTF-16
Rhodri James [Fri, 4 Aug 2017 17:27:10 +0000 (18:27 +0100)]
Fix test_danish_latin1() to handle UTF-16

7 years agoAdd wrapper macro to give string literals the right type for XML_Char*
Rhodri James [Fri, 4 Aug 2017 17:14:30 +0000 (18:14 +0100)]
Add wrapper macro to give string literals the right type for XML_Char*

7 years agoEnsure the _check functions take parse text as char not XML_Char
Rhodri James [Fri, 4 Aug 2017 16:59:04 +0000 (17:59 +0100)]
Ensure the _check functions take parse text as char not XML_Char

_run_character_check() et al pass their parse text to XML_Parse()
via _XML_Parse_SINGLE_BYTES().  Both of these expect the parse text
as "const char *", not "const XML_Char *".

7 years agoFix wide character issues in param_entity_match_handler()
Rhodri James [Fri, 4 Aug 2017 16:50:50 +0000 (17:50 +0100)]
Fix wide character issues in param_entity_match_handler()

7 years agoAdd macros for XML_Char-based strncmp and strlen equivalents
Rhodri James [Fri, 4 Aug 2017 16:49:37 +0000 (17:49 +0100)]
Add macros for XML_Char-based strncmp and strlen equivalents

7 years agoFix wide character comparisons in external_entity_optioner()
Rhodri James [Fri, 4 Aug 2017 16:41:37 +0000 (17:41 +0100)]
Fix wide character comparisons in external_entity_optioner()

7 years agoDefine and use macros for XML_Char and XML_Char* format strings
Rhodri James [Fri, 4 Aug 2017 16:31:44 +0000 (17:31 +0100)]
Define and use macros for XML_Char and XML_Char* format strings

7 years agoPrevent XML_UNICODE being redefined
Rhodri James [Fri, 4 Aug 2017 16:06:44 +0000 (17:06 +0100)]
Prevent XML_UNICODE being redefined

7 years agoexamples: Use printf rather than [f]put[w]s (pull request #135)
Rhodri James [Tue, 29 Aug 2017 13:05:38 +0000 (14:05 +0100)]
examples: Use printf rather than [f]put[w]s (pull request #135)

7 years agoxmlparse.c: Resolve superfluous internal malloc/realloc switch (#6)
Sebastian Pipping [Mon, 28 Aug 2017 22:39:58 +0000 (00:39 +0200)]
xmlparse.c: Resolve superfluous internal malloc/realloc switch (#6)

7 years agoxmltok.c: Use memcpy
Sebastian Pipping [Mon, 28 Aug 2017 20:15:11 +0000 (22:15 +0200)]
xmltok.c: Use memcpy

Fixes false positive Clang (4.0.1) Static Analyzer warning (issue #9)
as a side-effect.

7 years agoxmlwf: Address Clang Static Analyzer warning
Sebastian Pipping [Mon, 28 Aug 2017 19:38:44 +0000 (21:38 +0200)]
xmlwf: Address Clang Static Analyzer warning

7 years agoMerge branch 'RMJ10-unicode-benchmark' (pull request #130)
Sebastian Pipping [Sat, 26 Aug 2017 15:19:47 +0000 (17:19 +0200)]
Merge branch 'RMJ10-unicode-benchmark' (pull request #130)

7 years agoChanges: Document #130
Sebastian Pipping [Sat, 26 Aug 2017 15:19:12 +0000 (17:19 +0200)]
Changes: Document #130

7 years agobenchmark: Indent preprocessor code
Sebastian Pipping [Sat, 26 Aug 2017 15:18:10 +0000 (17:18 +0200)]
benchmark: Indent preprocessor code

7 years agoFix benchmark to compile under XML_UNICODE_WCHAR_T
Rhodri James [Thu, 24 Aug 2017 13:19:03 +0000 (14:19 +0100)]
Fix benchmark to compile under XML_UNICODE_WCHAR_T

7 years agoMerge branch 'RMJ10-unicode-examples' (pull request #129)
Sebastian Pipping [Sat, 26 Aug 2017 15:04:13 +0000 (17:04 +0200)]
Merge branch 'RMJ10-unicode-examples' (pull request #129)

7 years agoChanges: Document #129
Sebastian Pipping [Sat, 26 Aug 2017 15:02:30 +0000 (17:02 +0200)]
Changes: Document #129

7 years agoexamples: Indent preprocessor code
Sebastian Pipping [Sat, 26 Aug 2017 15:01:59 +0000 (17:01 +0200)]
examples: Indent preprocessor code

7 years agoFix example programs to compile under XML_UNICODE_WCHAR_T
Rhodri James [Thu, 24 Aug 2017 13:16:16 +0000 (14:16 +0100)]
Fix example programs to compile under XML_UNICODE_WCHAR_T

7 years agoREADME.md: Add AppVeyor status badge
Sebastian Pipping [Thu, 24 Aug 2017 22:10:56 +0000 (00:10 +0200)]
README.md: Add AppVeyor status badge

7 years agoMerge branch 'zeroc-ice-ci' (pull request #128, issue #53)
Sebastian Pipping [Thu, 24 Aug 2017 21:36:08 +0000 (23:36 +0200)]
Merge branch 'zeroc-ice-ci' (pull request #128, issue #53)

7 years agoappveyor.yml: Sync copyright header
Sebastian Pipping [Thu, 24 Aug 2017 21:05:50 +0000 (23:05 +0200)]
appveyor.yml: Sync copyright header

7 years agoappveyor.yml: Convert from ISO-8859 to UTF-8
Sebastian Pipping [Thu, 24 Aug 2017 21:04:57 +0000 (23:04 +0200)]
appveyor.yml: Convert from ISO-8859 to UTF-8

7 years agoappveyor.yml: Add vs2010
Sebastian Pipping [Thu, 24 Aug 2017 20:50:59 +0000 (22:50 +0200)]
appveyor.yml: Add vs2010

7 years agoappveyor.yml: Add links on CMake generators and installed VS versions
Sebastian Pipping [Thu, 24 Aug 2017 20:49:38 +0000 (22:49 +0200)]
appveyor.yml: Add links on CMake generators and installed VS versions

7 years agoappveyor.yml: Apply detailed license header
Sebastian Pipping [Thu, 24 Aug 2017 20:45:00 +0000 (22:45 +0200)]
appveyor.yml: Apply detailed license header

7 years agoAdd Windows CI with Appveyor Fixes issue #53
Jose [Thu, 24 Aug 2017 18:31:15 +0000 (20:31 +0200)]
Add Windows CI with Appveyor Fixes issue #53

7 years agoChanges: Add missing accents
Sebastian Pipping [Wed, 23 Aug 2017 20:10:03 +0000 (22:10 +0200)]
Changes: Add missing accents

7 years agoChanges: Fix typo
Sebastian Pipping [Wed, 23 Aug 2017 16:06:46 +0000 (18:06 +0200)]
Changes: Fix typo

7 years agoMerge branch 'visual-studio-2012' (pull request #127)
Sebastian Pipping [Wed, 23 Aug 2017 15:55:59 +0000 (17:55 +0200)]
Merge branch 'visual-studio-2012' (pull request #127)

7 years agoChanges: Document #126
Sebastian Pipping [Wed, 23 Aug 2017 14:06:46 +0000 (16:06 +0200)]
Changes: Document #126

7 years agoAdd version comment to _INTERNAL_trim_to_complete_utf8_characters
Sebastian Pipping [Wed, 23 Aug 2017 15:35:26 +0000 (17:35 +0200)]
Add version comment to _INTERNAL_trim_to_complete_utf8_characters

7 years agoLeave no doubt about align_limit_to_full_utf8_characters being internal
Sebastian Pipping [Wed, 23 Aug 2017 15:33:39 +0000 (17:33 +0200)]
Leave no doubt about align_limit_to_full_utf8_characters being internal

7 years agoFix missing export symbol required by testsuite
Jose [Wed, 23 Aug 2017 11:56:13 +0000 (13:56 +0200)]
Fix missing export symbol required by testsuite

Need to export the symbol align_limit_to_full_utf8_characters
to build the test suite on Windows.

7 years agoxmlwf/readfilemap.c: Address lack of ssize_t for Visual Studio
Sebastian Pipping [Wed, 23 Aug 2017 14:23:33 +0000 (16:23 +0200)]
xmlwf/readfilemap.c: Address lack of ssize_t for Visual Studio

7 years agoqa.sh: Stay closer to c89 (still requires c99)
Sebastian Pipping [Wed, 23 Aug 2017 14:03:19 +0000 (16:03 +0200)]
qa.sh: Stay closer to c89 (still requires c99)

7 years agoxmlparse.c|xmltok.c: Turn some comments to c89 style
Sebastian Pipping [Wed, 23 Aug 2017 14:02:40 +0000 (16:02 +0200)]
xmlparse.c|xmltok.c: Turn some comments to c89 style

7 years agoFix compile error with Visual Studio 2012
Jose [Wed, 23 Aug 2017 09:33:12 +0000 (11:33 +0200)]
Fix compile error with Visual Studio 2012

The standard header stdbool.h is not available
with old Visual Studio compilers

7 years agoAdd artificial scopes in xmltok.c utf8_toUtf8() to fix c89 compilation.
Benbuck Nason [Mon, 21 Aug 2017 22:02:01 +0000 (15:02 -0700)]
Add artificial scopes in xmltok.c utf8_toUtf8() to fix c89 compilation.

7 years agoREADME.md: Show Travis CI build status
Sebastian Pipping [Tue, 22 Aug 2017 23:02:21 +0000 (01:02 +0200)]
README.md: Show Travis CI build status

7 years agoMerge branch 'RMJ10-issue-11-fix' (pull request #110)
Sebastian Pipping [Tue, 22 Aug 2017 22:37:49 +0000 (00:37 +0200)]
Merge branch 'RMJ10-issue-11-fix' (pull request #110)

7 years agoChanges: Document fix to #11
Sebastian Pipping [Tue, 22 Aug 2017 22:37:08 +0000 (00:37 +0200)]
Changes: Document fix to #11

7 years agoDon't suppress default handler unnecessarily (Issue #11)
Rhodri James [Thu, 3 Aug 2017 10:25:04 +0000 (11:25 +0100)]
Don't suppress default handler unnecessarily (Issue #11)

The roles XML_ROLE_DOCTYPE_PUBLIC_ID and XML_ROLE_DOCTYPE_SYSTEM_ID
fall through to XML_ROLE_ENTITY_PUBLIC_ID and XML_ROLE_ENTITY_SYSTEM_ID
respectively.  This lead to the default handler getting suppressed if
there was no start doctype declaration handler but there was an entity
declaration handler.

7 years agoTest for incorrectly suppressed default handler (issue #11)
Rhodri James [Thu, 3 Aug 2017 10:24:20 +0000 (11:24 +0100)]
Test for incorrectly suppressed default handler (issue #11)

7 years agoMerge branch 'RMJ10-issue-8-fix' (pull request #108)
Sebastian Pipping [Tue, 22 Aug 2017 22:22:49 +0000 (00:22 +0200)]
Merge branch 'RMJ10-issue-8-fix' (pull request #108)

7 years agoChanges: Document fix to #8
Sebastian Pipping [Tue, 22 Aug 2017 22:21:29 +0000 (00:21 +0200)]
Changes: Document fix to #8

7 years agoKeep allocDefaultAtts consistent if allocating defaultAtts fails.
Rhodri James [Wed, 2 Aug 2017 16:35:25 +0000 (17:35 +0100)]
Keep allocDefaultAtts consistent if allocating defaultAtts fails.

See issue #8

7 years agoMerge branch 'RMJ10-xmlwf-doctype-fix' (pull request #106)
Sebastian Pipping [Tue, 22 Aug 2017 21:21:37 +0000 (23:21 +0200)]
Merge branch 'RMJ10-xmlwf-doctype-fix' (pull request #106)

7 years agoChanges: Document #106
Sebastian Pipping [Tue, 22 Aug 2017 21:00:04 +0000 (23:00 +0200)]
Changes: Document #106

7 years agoxmlwf.c: Address unused parameter warning
Sebastian Pipping [Tue, 22 Aug 2017 21:14:14 +0000 (23:14 +0200)]
xmlwf.c: Address unused parameter warning

7 years agoUpdate expected test log to match changes to xmlwf
Rhodri James [Wed, 5 Jul 2017 13:22:30 +0000 (14:22 +0100)]
Update expected test log to match changes to xmlwf

7 years agoPlug memory leak in xmlwf's end of doctype declaration handler
Rhodri James [Tue, 22 Aug 2017 10:54:52 +0000 (11:54 +0100)]
Plug memory leak in xmlwf's end of doctype declaration handler

7 years agoFix formatting and message re-use
Rhodri James [Mon, 21 Aug 2017 17:16:41 +0000 (18:16 +0100)]
Fix formatting and message re-use

7 years agoRename xmlCharDup to xcsdup and tighten up the code
Rhodri James [Mon, 21 Aug 2017 16:53:10 +0000 (17:53 +0100)]
Rename xmlCharDup to xcsdup and tighten up the code