]> granicus.if.org Git - libexpat/log
libexpat
7 years agoTest that UTF-16 element local names with non-zero top byte are accepted
Rhodri James [Thu, 15 Jun 2017 18:19:23 +0000 (19:19 +0100)]
Test that UTF-16 element local names with non-zero top byte are accepted

7 years agoTest that non-name characters after a colon in an element are rejected
Rhodri James [Thu, 15 Jun 2017 17:21:39 +0000 (18:21 +0100)]
Test that non-name characters after a colon in an element are rejected

7 years agoTest that more than one colon in an element name is rejected
Rhodri James [Thu, 15 Jun 2017 17:15:51 +0000 (18:15 +0100)]
Test that more than one colon in an element name is rejected

7 years agoTest that text after a / is faulted
Rhodri James [Thu, 15 Jun 2017 17:00:30 +0000 (18:00 +0100)]
Test that text after a / is faulted

7 years agoTest second attribute with UTF-16 top byte non-zero is valid
Rhodri James [Thu, 15 Jun 2017 16:52:08 +0000 (17:52 +0100)]
Test second attribute with UTF-16 top byte non-zero is valid

This exercises a different code path to the first attribute

7 years agoTest invalid character in attribute value is faulted
Rhodri James [Thu, 15 Jun 2017 16:25:27 +0000 (17:25 +0100)]
Test invalid character in attribute value is faulted

7 years agoTest UTF-16 attribute names with non-zero top byte are accepted
Rhodri James [Thu, 15 Jun 2017 15:50:42 +0000 (16:50 +0100)]
Test UTF-16 attribute names with non-zero top byte are accepted

7 years agoTest that non-name characters after a colon are rejected
Rhodri James [Thu, 15 Jun 2017 15:35:14 +0000 (16:35 +0100)]
Test that non-name characters after a colon are rejected

I.e. test that leafnames have to be valid names

7 years agoTest more than one colon in an attribute name is rejected
Rhodri James [Thu, 15 Jun 2017 15:18:53 +0000 (16:18 +0100)]
Test more than one colon in an attribute name is rejected

I.e. test that namespaces don't nest

7 years agoTest attribute with high-byte-set UTF-16 character name
Rhodri James [Thu, 15 Jun 2017 14:59:16 +0000 (15:59 +0100)]
Test attribute with high-byte-set UTF-16 character name

7 years agoTest non-ASCII characters in entity names
Rhodri James [Thu, 15 Jun 2017 13:06:25 +0000 (14:06 +0100)]
Test non-ASCII characters in entity names

Use UTF-16 character with value > 0x00ff for extra code coverage

7 years agoTest invalid character in a hex character reference
Rhodri James [Thu, 15 Jun 2017 12:27:37 +0000 (13:27 +0100)]
Test invalid character in a hex character reference

7 years agoTest trailing spaces in element names are ignored in start and end tags
Rhodri James [Thu, 15 Jun 2017 12:18:50 +0000 (13:18 +0100)]
Test trailing spaces in element names are ignored in start and end tags

7 years agoTest single stray ] doesn't close a CDATA section
Rhodri James [Wed, 14 Jun 2017 18:20:29 +0000 (19:20 +0100)]
Test single stray ] doesn't close a CDATA section

Also uses multi-byte characters around the ] to exercise more code.

7 years agoTest that UTF-8 safely passes through a CDATA section.
Rhodri James [Wed, 14 Jun 2017 17:35:02 +0000 (18:35 +0100)]
Test that UTF-8 safely passes through a CDATA section.

Specifically test that multi-byte characters are correctly tokenised

7 years agoTest PI in UTF-16 with non-ASCII target name
Rhodri James [Wed, 14 Jun 2017 16:13:10 +0000 (17:13 +0100)]
Test PI in UTF-16 with non-ASCII target name

7 years agoTest PI with target of "xmm"
Rhodri James [Wed, 14 Jun 2017 11:48:32 +0000 (12:48 +0100)]
Test PI with target of "xmm"

7 years agoTest PI with a target of "xnl"
Rhodri James [Wed, 14 Jun 2017 11:46:29 +0000 (12:46 +0100)]
Test PI with a target of "xnl"

7 years agoTest PI with a target of "yml"
Rhodri James [Wed, 14 Jun 2017 11:41:26 +0000 (12:41 +0100)]
Test PI with a target of "yml"

7 years agoRefactor test_comment_handled_in_default()
Rhodri James [Tue, 13 Jun 2017 18:17:14 +0000 (19:17 +0100)]
Refactor test_comment_handled_in_default()

Eliminates an unnecessary handler when we can use
accumulate_characters instead.

7 years agoRefactor test_pi_handled_in_default to use accumulate_characters()
Rhodri James [Tue, 13 Jun 2017 18:14:21 +0000 (19:14 +0100)]
Refactor test_pi_handled_in_default to use accumulate_characters()

7 years agoTest unknown encoding handler in a parser with namespaces
Rhodri James [Mon, 12 Jun 2017 17:38:27 +0000 (18:38 +0100)]
Test unknown encoding handler in a parser with namespaces

7 years agoTest unannounced UTF-16, no BOM, leading space to hide '<'
Rhodri James [Mon, 12 Jun 2017 17:24:39 +0000 (18:24 +0100)]
Test unannounced UTF-16, no BOM, leading space to hide '<'

7 years agoTest UTF-16 where UTF-8 is expected is rejected
Rhodri James [Mon, 12 Jun 2017 17:06:50 +0000 (18:06 +0100)]
Test UTF-16 where UTF-8 is expected is rejected

7 years agoTest UTF-16BE vs explicit UTF-16LE encoding
Rhodri James [Mon, 12 Jun 2017 16:20:10 +0000 (17:20 +0100)]
Test UTF-16BE vs explicit UTF-16LE encoding

7 years agoTest UTF-8 character nearly the BOM (for code path coverage)
Rhodri James [Mon, 12 Jun 2017 16:03:36 +0000 (17:03 +0100)]
Test UTF-8 character nearly the BOM (for code path coverage)

7 years agoTest UTF-16LE vs explicit UTF-16BE encoding
Rhodri James [Mon, 12 Jun 2017 15:48:31 +0000 (16:48 +0100)]
Test UTF-16LE vs explicit UTF-16BE encoding

7 years agoTest UTF-16 BE BOM vs explicit Latin-1 encoding parsing a full buffer
Rhodri James [Mon, 12 Jun 2017 14:57:01 +0000 (15:57 +0100)]
Test UTF-16 BE BOM vs explicit Latin-1 encoding parsing a full buffer

7 years agoTest UTF-16 big-endian BOM vs explicit Latin-1 encoding
Rhodri James [Mon, 12 Jun 2017 14:52:21 +0000 (15:52 +0100)]
Test UTF-16 big-endian BOM vs explicit Latin-1 encoding

7 years agoTest UTF-16 BOM vs explicit latin-1 encoding parsing a full buffer
Rhodri James [Mon, 12 Jun 2017 14:34:13 +0000 (15:34 +0100)]
Test UTF-16 BOM vs explicit latin-1 encoding parsing a full buffer

7 years agoTest UTF-16 BOM vs explicit latin-1 encoding
Rhodri James [Mon, 12 Jun 2017 13:48:17 +0000 (14:48 +0100)]
Test UTF-16 BOM vs explicit latin-1 encoding

7 years agoTest specifying a UTF-16 encoding when creating the parser works
Rhodri James [Fri, 9 Jun 2017 17:34:18 +0000 (18:34 +0100)]
Test specifying a UTF-16 encoding when creating the parser works

7 years agoTest unknown encoding with 17-bit top-bit-set character is rejected
Rhodri James [Fri, 9 Jun 2017 16:15:57 +0000 (17:15 +0100)]
Test unknown encoding with 17-bit top-bit-set character is rejected

7 years agoTest top-bit-set character mimicking surrogate high is rejected
Rhodri James [Fri, 9 Jun 2017 16:05:38 +0000 (17:05 +0100)]
Test top-bit-set character mimicking surrogate high is rejected

7 years agoTest top-bit set character mimicking ASCII is rejected in encodings
Rhodri James [Fri, 9 Jun 2017 15:35:57 +0000 (16:35 +0100)]
Test top-bit set character mimicking ASCII is rejected in encodings

7 years agoTest unknown encoding with invalid multi-byte length field
Rhodri James [Fri, 9 Jun 2017 15:21:32 +0000 (16:21 +0100)]
Test unknown encoding with invalid multi-byte length field

7 years agoMore refactoring of unknown encoding handlers
Rhodri James [Fri, 9 Jun 2017 15:12:25 +0000 (16:12 +0100)]
More refactoring of unknown encoding handlers

7 years agoRefactor to use encoding to switch UnknownEncoding handler behaviour
Rhodri James [Fri, 9 Jun 2017 14:44:21 +0000 (15:44 +0100)]
Refactor to use encoding to switch UnknownEncoding handler behaviour

7 years agoTest ASCII-like unknown encoding correctly rejects invalid characters
Rhodri James [Fri, 9 Jun 2017 14:23:38 +0000 (15:23 +0100)]
Test ASCII-like unknown encoding correctly rejects invalid characters

7 years agoCheck that ASCII-like encoding is valid
Rhodri James [Fri, 9 Jun 2017 14:16:25 +0000 (15:16 +0100)]
Check that ASCII-like encoding is valid

7 years agoTest unknown encoding not compatible with ASCII is rejected
Rhodri James [Fri, 9 Jun 2017 12:14:43 +0000 (13:14 +0100)]
Test unknown encoding not compatible with ASCII is rejected

7 years agoTest unknown encoding conversion buffer overflow not on convert()
Rhodri James [Fri, 9 Jun 2017 11:43:41 +0000 (12:43 +0100)]
Test unknown encoding conversion buffer overflow not on convert()

7 years agoTest unknown encoding conversion buffer overflow on convert()
Rhodri James [Fri, 9 Jun 2017 11:32:32 +0000 (12:32 +0100)]
Test unknown encoding conversion buffer overflow on convert()

7 years agoTest bad non-start of name in unknown encoding
Rhodri James [Thu, 8 Jun 2017 18:56:47 +0000 (19:56 +0100)]
Test bad non-start of name in unknown encoding

7 years agoTest bad start of name with an unknown encoding
Rhodri James [Thu, 8 Jun 2017 18:48:43 +0000 (19:48 +0100)]
Test bad start of name with an unknown encoding

7 years agoTest converted start of name with unknown encoding
Rhodri James [Thu, 8 Jun 2017 18:20:56 +0000 (19:20 +0100)]
Test converted start of name with unknown encoding

7 years agoComment change: exclude more unreachable code from coverage
Rhodri James [Thu, 8 Jun 2017 18:13:06 +0000 (19:13 +0100)]
Comment change: exclude more unreachable code from coverage

7 years agoTest a valid (if odd) encoding
Rhodri James [Thu, 8 Jun 2017 18:02:54 +0000 (19:02 +0100)]
Test a valid (if odd) encoding

7 years agoComment change: exclude unreachable condition from coverage
Rhodri James [Thu, 8 Jun 2017 16:02:21 +0000 (17:02 +0100)]
Comment change: exclude unreachable condition from coverage

7 years agoRefactor to get rid of data/code pointer conversion warning
Rhodri James [Tue, 6 Jun 2017 18:20:33 +0000 (19:20 +0100)]
Refactor to get rid of data/code pointer conversion warning

7 years agoAdd test for encoding conversion function returning errors
Rhodri James [Tue, 6 Jun 2017 17:40:50 +0000 (18:40 +0100)]
Add test for encoding conversion function returning errors

7 years agoReject multi-byte encodings with no converter function.
Rhodri James [Tue, 6 Jun 2017 16:54:32 +0000 (17:54 +0100)]
Reject multi-byte encodings with no converter function.

Not supplying a character encoding convert function when one was
needed previously caused a segfault if a multi-byte character was
encountered.  This errors at the start of parse instead.

7 years agoAdd test of multi-byte encoding without a conversion function
Rhodri James [Tue, 6 Jun 2017 16:29:26 +0000 (17:29 +0100)]
Add test of multi-byte encoding without a conversion function

At this commit, the tests seg fault

7 years agoTest XML declaration with missing value for 'standalone' attr
Rhodri James [Fri, 26 May 2017 16:36:00 +0000 (17:36 +0100)]
Test XML declaration with missing value for 'standalone' attr

7 years agoTest XML declaration with missing attribute name
Rhodri James [Fri, 26 May 2017 16:21:53 +0000 (17:21 +0100)]
Test XML declaration with missing attribute name

7 years agoCheck invalid characters at the end of an XML declaration
Rhodri James [Fri, 26 May 2017 16:11:13 +0000 (17:11 +0100)]
Check invalid characters at the end of an XML declaration

7 years agoMark the second uppercasing in streqci() as unreacheable for coverage tests
Rhodri James [Fri, 26 May 2017 14:29:48 +0000 (15:29 +0100)]
Mark the second uppercasing in streqci() as unreacheable for coverage tests

7 years agoExtend test_utf16 to include a character encoded as 0xff??
Rhodri James [Fri, 26 May 2017 14:05:29 +0000 (15:05 +0100)]
Extend test_utf16 to include a character encoded as 0xff??

7 years agoTest that reversed UTF-16 surrogate pair in CDATA is rejected
Rhodri James [Fri, 26 May 2017 13:27:12 +0000 (14:27 +0100)]
Test that reversed UTF-16 surrogate pair in CDATA is rejected

7 years agoTest that a long attribute in ASCII encoding is correctly converted
Rhodri James [Fri, 26 May 2017 11:36:33 +0000 (12:36 +0100)]
Test that a long attribute in ASCII encoding is correctly converted

7 years agoCheck latin1 char expanding to two bytes UTF-8 across a buffer boundary.
Rhodri James [Fri, 26 May 2017 11:13:56 +0000 (12:13 +0100)]
Check latin1 char expanding to two bytes UTF-8 across a buffer boundary.

7 years agoTest four-byte UTF-8 character are rejected in names
Rhodri James [Thu, 25 May 2017 15:56:07 +0000 (16:56 +0100)]
Test four-byte UTF-8 character are rejected in names

7 years agoAdd utility script file to tidy up after running coverage tests
Rhodri James [Thu, 25 May 2017 14:17:46 +0000 (15:17 +0100)]
Add utility script file to tidy up after running coverage tests

7 years agoIgnore directories created by coverage script
Rhodri James [Thu, 25 May 2017 14:12:18 +0000 (15:12 +0100)]
Ignore directories created by coverage script

7 years agoFix LCOV exclusion symbols in xmlparse.c
Rhodri James [Thu, 25 May 2017 13:59:32 +0000 (14:59 +0100)]
Fix LCOV exclusion symbols in xmlparse.c

7 years agoComment why negative blocksize in poolGrow is hard to test
Rhodri James [Mon, 15 May 2017 18:13:38 +0000 (19:13 +0100)]
Comment why negative blocksize in poolGrow is hard to test

Also add comment tags for lcov to ignore untestable code

7 years agoComment why negative blocksize in poolGrow is hard to test
Rhodri James [Mon, 15 May 2017 18:09:28 +0000 (19:09 +0100)]
Comment why negative blocksize in poolGrow is hard to test

Add comment tags so lcov can ignore untestable code

7 years agoComment why poolCopyStringN is not entered with an empty string pool
Rhodri James [Mon, 15 May 2017 17:57:12 +0000 (18:57 +0100)]
Comment why poolCopyStringN is not entered with an empty string pool

Also add comment tags so that lcov can ignore unreachable code.

7 years agoComment why an unbound prefix in getContext is believed impossible
Rhodri James [Mon, 15 May 2017 17:55:48 +0000 (18:55 +0100)]
Comment why an unbound prefix in getContext is believed impossible

Also add comment tags so that lcov can ignore unreachable code

7 years agoComment why allocation failure in getContext is believe impossible.
Rhodri James [Mon, 15 May 2017 17:53:44 +0000 (18:53 +0100)]
Comment why allocation failure in getContext is believe impossible.

Also add comment tags so lcov can ignore unreachable code

7 years agoComment why encoding change in reportDefault is believed never to happen
Rhodri James [Mon, 15 May 2017 17:52:48 +0000 (18:52 +0100)]
Comment why encoding change in reportDefault is believed never to happen

Also add comment tags so that lcov can ignore unreachable code

7 years agoComment why default case in storeEntityValue is never executed
Rhodri James [Mon, 15 May 2017 17:51:45 +0000 (18:51 +0100)]
Comment why default case in storeEntityValue is never executed

Also add comment tags so lcov can ignore unreachable code

7 years agoRemove unreachable error code in character ref handling
Rhodri James [Mon, 15 May 2017 17:50:53 +0000 (18:50 +0100)]
Remove unreachable error code in character ref handling

7 years agoComment why defaul case in appendAttreibuteValue is never executed
Rhodri James [Mon, 15 May 2017 17:49:22 +0000 (18:49 +0100)]
Comment why defaul case in appendAttreibuteValue is never executed

Also add comment tags so that lcov can ignore unreachable code

7 years agoComment why encoding check in appendAttributeValue is never true
Rhodri James [Mon, 15 May 2017 17:44:32 +0000 (18:44 +0100)]
Comment why encoding check in appendAttributeValue is never true

Also add comment tag so lcov can ignore unreachable code

7 years agoRemove unreachable error handling code in character ref handling
Rhodri James [Mon, 15 May 2017 17:42:18 +0000 (18:42 +0100)]
Remove unreachable error handling code in character ref handling

7 years agoComment why internal entity in param entity is believe impossible.
Rhodri James [Mon, 15 May 2017 17:39:21 +0000 (18:39 +0100)]
Comment why internal entity in param entity is believe impossible.

Also add comment tags to allow lcov to ignore unreachable code

7 years agoComment why external subset name lookup cannot fail
Rhodri James [Mon, 15 May 2017 17:37:51 +0000 (18:37 +0100)]
Comment why external subset name lookup cannot fail

Also add comment tag so that lcov can ignore unreachable code

7 years agoRemove unreachable code in entityValueInitProcessor
Rhodri James [Mon, 15 May 2017 17:36:19 +0000 (18:36 +0100)]
Remove unreachable code in entityValueInitProcessor

7 years agoComment why doIgnoreSection's default case is never called.
Rhodri James [Mon, 15 May 2017 17:32:04 +0000 (18:32 +0100)]
Comment why doIgnoreSection's default case is never called.

Also add comment tags so that lcov can ignore unreachable code

7 years agoComment why doIgnoreSection is believed to always use the parser's encoding
Rhodri James [Mon, 15 May 2017 17:30:39 +0000 (18:30 +0100)]
Comment why doIgnoreSection is believed to always use the parser's encoding

Also add comment tags so that lcov can ignore the unreachable code

7 years agoComment why doCdataSection's default case is never executed.
Rhodri James [Mon, 15 May 2017 17:28:50 +0000 (18:28 +0100)]
Comment why doCdataSection's default case is never executed.

Also add comment tags so that lcov can ignore the unreachable code

7 years agoComment why code in storeAtts() is never executed.
Rhodri James [Mon, 15 May 2017 17:27:20 +0000 (18:27 +0100)]
Comment why code in storeAtts() is never executed.

Also add comment tags so lcov can ignore the unreachable code

7 years agoComment why doContent's default case is never executed.
Rhodri James [Mon, 15 May 2017 17:24:39 +0000 (18:24 +0100)]
Comment why doContent's default case is never executed.

Also add comment markers so lcov can ignore the unreachable code.

7 years agoComment why tidy-up parse cannot be suspended
Rhodri James [Mon, 15 May 2017 17:18:29 +0000 (18:18 +0100)]
Comment why tidy-up parse cannot be suspended

Also add tags so that lcov can ignore the unreachable code.

7 years agoTest parsing element in namespace with a failing allocator
Rhodri James [Mon, 8 May 2017 17:45:41 +0000 (18:45 +0100)]
Test parsing element in namespace with a failing allocator

7 years agoTest extremely long namespace prefix
Rhodri James [Mon, 8 May 2017 15:47:01 +0000 (16:47 +0100)]
Test extremely long namespace prefix

Exercises a path in poolGrow that requires attempting to over-fill
a gap of more than 1024 characters in a non-empty pool.

7 years agoTest large element group with a failing allocator
Rhodri James [Fri, 5 May 2017 16:58:54 +0000 (17:58 +0100)]
Test large element group with a failing allocator

7 years agoTest long notation value with external entity and failing allocator
Rhodri James [Fri, 5 May 2017 15:40:17 +0000 (16:40 +0100)]
Test long notation value with external entity and failing allocator

7 years agoMove external_entity_optioner up to be more generally available
Rhodri James [Fri, 5 May 2017 15:39:20 +0000 (16:39 +0100)]
Move external_entity_optioner up to be more generally available

No functionality changes in this commit

7 years agoTest long entity value and external entity with duff allocator
Rhodri James [Fri, 5 May 2017 14:21:00 +0000 (15:21 +0100)]
Test long entity value and external entity with duff allocator

7 years agoTest external entity with long public ID and failing allocator
Rhodri James [Fri, 5 May 2017 13:24:55 +0000 (14:24 +0100)]
Test external entity with long public ID and failing allocator

7 years agoTest long base URI for external parser with duff allocator
Rhodri James [Fri, 5 May 2017 12:35:24 +0000 (13:35 +0100)]
Test long base URI for external parser with duff allocator

7 years agoTest long entity system ID in external parser with failing allocator
Rhodri James [Wed, 3 May 2017 18:16:25 +0000 (19:16 +0100)]
Test long entity system ID in external parser with failing allocator

7 years agoTest with long default attribute for ext parser with duff allocator
Rhodri James [Wed, 3 May 2017 17:06:54 +0000 (18:06 +0100)]
Test with long default attribute for ext parser with duff allocator

7 years agoTest longer context URI with a failing reallocator
Rhodri James [Wed, 3 May 2017 15:35:30 +0000 (16:35 +0100)]
Test longer context URI with a failing reallocator

7 years agoTest a long URI in the context string with a failing allocator
Rhodri James [Wed, 3 May 2017 12:24:08 +0000 (13:24 +0100)]
Test a long URI in the context string with a failing allocator

7 years agoTest long namespace in external entity context with duff reallocator
Rhodri James [Tue, 2 May 2017 18:26:40 +0000 (19:26 +0100)]
Test long namespace in external entity context with duff reallocator

7 years agoTest long general entity name in external DTD with failing realloc
Rhodri James [Fri, 28 Apr 2017 19:00:20 +0000 (20:00 +0100)]
Test long general entity name in external DTD with failing realloc

7 years agoTest shorter long context URI with a failing reallocator
Rhodri James [Fri, 28 Apr 2017 17:26:59 +0000 (18:26 +0100)]
Test shorter long context URI with a failing reallocator

One last code path to exercise