Rhodri James
63de667ed0
Add test of multi-byte encoding without a conversion function
...
At this commit, the tests seg fault
2017-07-22 22:49:17 +02:00
Rhodri James
69b864b9b1
Test XML declaration with missing value for 'standalone' attr
2017-07-22 22:49:17 +02:00
Rhodri James
5eafa10b6e
Test XML declaration with missing attribute name
2017-07-22 22:49:17 +02:00
Rhodri James
b358d47719
Check invalid characters at the end of an XML declaration
2017-07-22 22:49:17 +02:00
Rhodri James
22bfe4f64d
Extend test_utf16 to include a character encoded as 0xff??
2017-07-22 22:49:17 +02:00
Rhodri James
9bb66e6699
Test that reversed UTF-16 surrogate pair in CDATA is rejected
2017-07-22 22:49:17 +02:00
Rhodri James
b99565c356
Test that a long attribute in ASCII encoding is correctly converted
2017-07-22 22:49:17 +02:00
Rhodri James
fddefa0680
Check latin1 char expanding to two bytes UTF-8 across a buffer boundary.
2017-07-22 22:49:16 +02:00
Rhodri James
a0ee59bd14
Test four-byte UTF-8 character are rejected in names
2017-07-22 22:49:16 +02:00
Rhodri James
1754bafba0
Test parsing element in namespace with a failing allocator
2017-07-22 22:49:16 +02:00
Rhodri James
704d03ef40
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.
2017-07-22 22:49:16 +02:00
Rhodri James
64f1b1b995
Test large element group with a failing allocator
2017-07-22 22:49:16 +02:00
Rhodri James
187650bad9
Test long notation value with external entity and failing allocator
2017-07-22 22:49:16 +02:00
Rhodri James
a40d23df08
Move external_entity_optioner up to be more generally available
...
No functionality changes in this commit
2017-07-22 22:49:16 +02:00
Rhodri James
eb99fe2529
Test long entity value and external entity with duff allocator
2017-07-22 22:49:16 +02:00
Rhodri James
fcae5d20aa
Test external entity with long public ID and failing allocator
2017-07-22 22:49:16 +02:00
Rhodri James
1ce3d9049a
Test long base URI for external parser with duff allocator
2017-07-22 22:49:16 +02:00
Rhodri James
75d3141f31
Test long entity system ID in external parser with failing allocator
2017-07-22 22:49:15 +02:00
Rhodri James
b03edfd961
Test with long default attribute for ext parser with duff allocator
2017-07-22 22:49:15 +02:00
Rhodri James
ec167d305c
Test longer context URI with a failing reallocator
2017-07-22 22:49:15 +02:00
Rhodri James
6aecdba977
Test a long URI in the context string with a failing allocator
2017-07-22 22:49:15 +02:00
Rhodri James
4282072d9c
Test long namespace in external entity context with duff reallocator
2017-07-22 22:49:15 +02:00
Rhodri James
4fe873c62b
Test long general entity name in external DTD with failing realloc
2017-07-22 22:49:15 +02:00
Rhodri James
126c0e8459
Test shorter long context URI with a failing reallocator
...
One last code path to exercise
2017-07-22 22:49:15 +02:00
Rhodri James
2950c7ac09
Again test long context URI against a failing reallocator
...
Another different code path
2017-07-22 22:49:15 +02:00
Rhodri James
67f238b794
Refactor context URI reallocation tests
2017-07-22 22:49:15 +02:00
Rhodri James
ae9fe3c614
Test shorter context URI in the face of a failing reallocator
...
Yet another different code path exercised
2017-07-22 22:49:15 +02:00
Rhodri James
1136aceaa3
Test different length context URI with duff reallocator
...
Exercises another different code path
2017-07-22 22:49:15 +02:00
Rhodri James
f4e09d7d5d
Test slightly shorter context URI with duff allocator
...
Exercises a different code path to previous context test
2017-07-22 22:49:15 +02:00
Rhodri James
464aefaccc
Test appropriately long context URI with a failing reallocator
2017-07-22 22:49:15 +02:00
Rhodri James
90f5d5e833
Test not-so-long namespace with failing allocator
2017-07-22 22:49:15 +02:00
Rhodri James
ddd6a15043
Test long namespace with failing allocator
2017-07-22 22:49:15 +02:00
Rhodri James
02a9d765d6
Test long root element name with a failing allocator
2017-07-22 22:49:15 +02:00
Rhodri James
96afb81e9a
Test longer namespace prefix with failing reallocator
2017-07-22 22:49:15 +02:00
Rhodri James
a5e1e0b94b
Test long namespace prefix with a failing reallocator
2017-07-22 22:49:15 +02:00
Rhodri James
e64102e71e
Test handling long attribute list with a failing reallocator
2017-07-22 22:49:15 +02:00
Rhodri James
aa04847906
Test that comments reach the default handler
2017-07-22 22:49:15 +02:00
Rhodri James
a7b6aea376
Test processing instruction with long body and duff allocator
2017-07-22 22:49:15 +02:00
Rhodri James
0a3a399d45
Test processing instruction reaches default handler if no PI handler
2017-07-22 22:49:15 +02:00
Rhodri James
5e4a2d6e6c
Test char entity extending param entity with failing reallocator
2017-07-22 22:49:14 +02:00
Rhodri James
afe4ad3830
Silence overly-pessimistic compiler warning.
...
The parsed_version structure will be fully filled in if parse_version
returns a non-zero value, but initializing the variable to zero is a
trivial cost for the tests.
2017-07-22 22:49:14 +02:00
Rhodri James
5d75b0ae62
Test invalid character reference is faulted
2017-07-22 22:49:14 +02:00
Rhodri James
4792f7af1c
Test expanding a param entity's string pool with a failing allocator
2017-07-22 22:49:14 +02:00
Rhodri James
87967e3623
Test trailing CR in a PE value is interpreted as a newline
2017-07-22 22:49:14 +02:00
Rhodri James
065ade6080
Test error in nested external entity substitution
2017-07-22 22:49:14 +02:00
Rhodri James
cb4f7250ac
Test another different code path for skipped external entity
2017-07-22 22:49:14 +02:00
Rhodri James
49a38e6291
Test different code path for skipping missing external entity
2017-07-22 22:49:14 +02:00
Rhodri James
09aef7e7e3
Test recursive parameter entity
2017-07-22 22:49:14 +02:00
Rhodri James
b641ecffa1
Test missing external entity is skipped
2017-07-22 22:49:14 +02:00
Rhodri James
74a7cdc0ae
Test general entity substitution in standalone internal param entity
2017-07-22 22:49:14 +02:00