]>
granicus.if.org Git - libexpat/log
Rhodri James [Fri, 28 Apr 2017 17:22:08 +0000 (18:22 +0100)]
Again test long context URI against a failing reallocator
Another different code path
Rhodri James [Fri, 28 Apr 2017 17:18:29 +0000 (18:18 +0100)]
Refactor context URI reallocation tests
Rhodri James [Fri, 28 Apr 2017 16:57:10 +0000 (17:57 +0100)]
Test shorter context URI in the face of a failing reallocator
Yet another different code path exercised
Rhodri James [Fri, 28 Apr 2017 16:47:15 +0000 (17:47 +0100)]
Test different length context URI with duff reallocator
Exercises another different code path
Rhodri James [Fri, 28 Apr 2017 16:38:10 +0000 (17:38 +0100)]
Test slightly shorter context URI with duff allocator
Exercises a different code path to previous context test
Rhodri James [Fri, 28 Apr 2017 16:27:45 +0000 (17:27 +0100)]
Test appropriately long context URI with a failing reallocator
Rhodri James [Thu, 27 Apr 2017 18:02:55 +0000 (19:02 +0100)]
Test not-so-long namespace with failing allocator
Rhodri James [Thu, 27 Apr 2017 15:21:03 +0000 (16:21 +0100)]
Test long namespace with failing allocator
Rhodri James [Thu, 27 Apr 2017 13:15:58 +0000 (14:15 +0100)]
Test long root element name with a failing allocator
Rhodri James [Thu, 27 Apr 2017 11:54:01 +0000 (12:54 +0100)]
Test longer namespace prefix with failing reallocator
Rhodri James [Thu, 27 Apr 2017 11:47:07 +0000 (12:47 +0100)]
Test long namespace prefix with a failing reallocator
Rhodri James [Wed, 26 Apr 2017 16:51:09 +0000 (17:51 +0100)]
Test handling long attribute list with a failing reallocator
Rhodri James [Wed, 26 Apr 2017 13:55:50 +0000 (14:55 +0100)]
Test that comments reach the default handler
Rhodri James [Wed, 26 Apr 2017 13:46:33 +0000 (14:46 +0100)]
Test processing instruction with long body and duff allocator
Rhodri James [Wed, 26 Apr 2017 13:01:44 +0000 (14:01 +0100)]
Test processing instruction reaches default handler if no PI handler
Rhodri James [Wed, 26 Apr 2017 12:14:38 +0000 (13:14 +0100)]
Test char entity extending param entity with failing reallocator
Rhodri James [Tue, 25 Apr 2017 18:24:19 +0000 (19:24 +0100)]
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.
Rhodri James [Mon, 24 Apr 2017 17:40:35 +0000 (18:40 +0100)]
Test invalid character reference is faulted
Rhodri James [Mon, 24 Apr 2017 16:53:29 +0000 (17:53 +0100)]
Test expanding a param entity's string pool with a failing allocator
Rhodri James [Mon, 24 Apr 2017 15:37:45 +0000 (16:37 +0100)]
Test trailing CR in a PE value is interpreted as a newline
Rhodri James [Fri, 21 Apr 2017 18:04:46 +0000 (19:04 +0100)]
Test error in nested external entity substitution
Rhodri James [Fri, 21 Apr 2017 16:08:00 +0000 (17:08 +0100)]
Test another different code path for skipped external entity
Rhodri James [Fri, 21 Apr 2017 15:45:49 +0000 (16:45 +0100)]
Test different code path for skipping missing external entity
Rhodri James [Fri, 21 Apr 2017 14:21:02 +0000 (15:21 +0100)]
Test recursive parameter entity
Rhodri James [Fri, 21 Apr 2017 12:12:51 +0000 (13:12 +0100)]
Test missing external entity is skipped
Rhodri James [Thu, 20 Apr 2017 13:58:49 +0000 (14:58 +0100)]
Test general entity substitution in standalone internal param entity
Rhodri James [Fri, 7 Apr 2017 18:53:36 +0000 (19:53 +0100)]
Test attribute value of a predefined entity with a duff allocator
Rhodri James [Fri, 7 Apr 2017 18:38:56 +0000 (19:38 +0100)]
Test whitespace attribute value with dodgy allocator
Rhodri James [Fri, 7 Apr 2017 17:29:18 +0000 (18:29 +0100)]
Test attribute value with trailing CR
Rhodri James [Fri, 7 Apr 2017 17:04:13 +0000 (18:04 +0100)]
Test long attribute value with failing allocator
Rhodri James [Fri, 17 Mar 2017 19:29:47 +0000 (19:29 +0000)]
Test long attribute value with character ref and a failing allocator
Tests strictly that a character reference at the end of a long default
value for an attribute will trigger the relevant string pool to grow,
and will recover correctly if there is no memory for growth
Rhodri James [Fri, 17 Mar 2017 18:10:10 +0000 (18:10 +0000)]
Test incomplete param ref in attribute default is rejected
Rhodri James [Fri, 17 Mar 2017 17:44:23 +0000 (17:44 +0000)]
Test invalid character in default attribute is rejected
Rhodri James [Fri, 17 Mar 2017 16:40:52 +0000 (16:40 +0000)]
Test long attribute with a dodgy reallocator
This tests a specific code path through parameter substitution, and
requires the attribute value to come out to 1024 bytes PLUS a terminal
NUL to trigger growth of the string pool in use. The NUL is added
separately, and it is that string append that we are triggering on.
Rhodri James [Fri, 17 Mar 2017 15:58:16 +0000 (15:58 +0000)]
Test restarting an errored parser returns the same error
Rhodri James [Fri, 17 Mar 2017 15:38:09 +0000 (15:38 +0000)]
Check that resumed general entity parse can be re-suspended
Rhodri James [Fri, 17 Mar 2017 15:26:12 +0000 (15:26 +0000)]
Test resuming a general entity catches XML errors
Rhodri James [Fri, 17 Mar 2017 15:17:43 +0000 (15:17 +0000)]
Test suspending and resuming parse in parameter entity substitution
Rhodri James [Fri, 17 Mar 2017 13:35:28 +0000 (13:35 +0000)]
Test suspending and resuming parse during entity substitution
Rhodri James [Thu, 16 Mar 2017 18:39:06 +0000 (18:39 +0000)]
Add test to ensure a hash collision while expanding hash table
This is purely an exercise in code coverage; there is no user-level
way of telling that the hash table has been expanded or that a
collision occurred.
Rhodri James [Thu, 16 Mar 2017 17:45:46 +0000 (17:45 +0000)]
Test suspending parse during epilog
Rhodri James [Thu, 16 Mar 2017 17:20:04 +0000 (17:20 +0000)]
Test aborting in the epilog not from a CR character
Rhodri James [Thu, 16 Mar 2017 17:12:52 +0000 (17:12 +0000)]
Test handling of partial characters at the end of the epilog
Rhodri James [Thu, 16 Mar 2017 16:51:17 +0000 (16:51 +0000)]
Test incomplete token in epilog
Rhodri James [Thu, 16 Mar 2017 16:28:04 +0000 (16:28 +0000)]
Test comment in epilog with failing allocator
Rhodri James [Thu, 16 Mar 2017 16:10:06 +0000 (16:10 +0000)]
Test PI handling in epilog with a failing allocator
Rhodri James [Thu, 16 Mar 2017 15:25:47 +0000 (15:25 +0000)]
Extend abort test to cover more epilog code
Rhodri James [Thu, 16 Mar 2017 14:58:38 +0000 (14:58 +0000)]
Test aborting parse during epilog processing
Rhodri James [Thu, 16 Mar 2017 13:58:13 +0000 (13:58 +0000)]
Test suspending parse during an XML declaration
Rhodri James [Thu, 16 Mar 2017 12:59:39 +0000 (12:59 +0000)]
Shuffle code to keep similar things together.
No functional changes
Rhodri James [Thu, 16 Mar 2017 12:53:13 +0000 (12:53 +0000)]
Test group with many elements and a failing reallocator
Rhodri James [Thu, 16 Mar 2017 12:00:36 +0000 (12:00 +0000)]
Test deeply nested group parsing with a failing allocator
Rhodri James [Wed, 15 Mar 2017 19:01:52 +0000 (19:01 +0000)]
Add test for external parameter entity with "not standalone" handler
Rhodri James [Wed, 15 Mar 2017 18:10:01 +0000 (18:10 +0000)]
Test external param entity with no further external parser
Rhodri James [Wed, 15 Mar 2017 17:52:49 +0000 (17:52 +0000)]
Test undefined system parameter entity in external DTD
Rhodri James [Wed, 15 Mar 2017 17:00:23 +0000 (17:00 +0000)]
Test recursive parameter entity is rejected
Rhodri James [Wed, 15 Mar 2017 15:53:46 +0000 (15:53 +0000)]
Test skipped parameter entity in external DTD triggers handler
Rhodri James [Wed, 15 Mar 2017 13:43:12 +0000 (13:43 +0000)]
Review 2017-03-13: refactor XML_Expat_Version test
Also revised to allow for the different definitions of XML_LChar.
Previous versions will not have worked in XML_UNICODE builds.
Rhodri James [Wed, 15 Mar 2017 12:54:32 +0000 (12:54 +0000)]
Review 2017-03-13: construct test string to avoid magic numbers
Rhodri James [Wed, 15 Mar 2017 12:33:03 +0000 (12:33 +0000)]
Review 2017-03-13: replace magic number with appropriate string len
Rhodri James [Wed, 15 Mar 2017 12:16:05 +0000 (12:16 +0000)]
Remove warning about potentially unset variable in tests
Also make test function external_entity_public() more robust
against misuse.
Rhodri James [Tue, 14 Mar 2017 16:23:08 +0000 (16:23 +0000)]
Test standalone parameter entity coverage
Rhodri James [Mon, 13 Mar 2017 16:22:56 +0000 (16:22 +0000)]
Test substituted public entity with long name against failing realloc
Rhodri James [Mon, 13 Mar 2017 14:57:18 +0000 (14:57 +0000)]
Test group with choice in element declaration
Rhodri James [Mon, 13 Mar 2017 14:04:10 +0000 (14:04 +0000)]
Add element decl handler to nested group reallocation test
Rhodri James [Mon, 13 Mar 2017 13:48:23 +0000 (13:48 +0000)]
Add element declaration handler to nested group test
Rhodri James [Mon, 13 Mar 2017 11:35:29 +0000 (11:35 +0000)]
Test nested groups with a failing reallocator
Rhodri James [Fri, 10 Mar 2017 19:12:06 +0000 (19:12 +0000)]
Test deeply-nested groups
Rhodri James [Fri, 10 Mar 2017 18:21:15 +0000 (18:21 +0000)]
Test public notation with no system ID
Rhodri James [Fri, 10 Mar 2017 17:59:35 +0000 (17:59 +0000)]
Test system notation with failing allocator
Rhodri James [Fri, 10 Mar 2017 17:33:16 +0000 (17:33 +0000)]
Test public notation with long system ID against failing allocator
Rhodri James [Fri, 10 Mar 2017 16:34:35 +0000 (16:34 +0000)]
Extend notation allocation test with notation declaration handler
This extends the code coverage a little, in particular checking
another allocation failure path.
Rhodri James [Fri, 10 Mar 2017 15:56:49 +0000 (15:56 +0000)]
Extend PE allocation test with long entity name
Rhodri James [Fri, 10 Mar 2017 15:07:48 +0000 (15:07 +0000)]
Test DTD processing stops for undefined parameter entities
Rhodri James [Thu, 9 Mar 2017 19:00:42 +0000 (19:00 +0000)]
Test redefining predefined entities
Rhodri James [Thu, 9 Mar 2017 17:57:47 +0000 (17:57 +0000)]
Add entity decl handler to notation entity allocation test
Rhodri James [Thu, 9 Mar 2017 17:52:37 +0000 (17:52 +0000)]
Test notation entity with failing allocator
Rhodri James [Thu, 9 Mar 2017 17:05:50 +0000 (17:05 +0000)]
Extend NotStandalone tests to also exclude external entity handlers
Rhodri James [Thu, 9 Mar 2017 16:28:47 +0000 (16:28 +0000)]
Test public doctype with long public name against failing allocator
Rhodri James [Thu, 9 Mar 2017 15:18:48 +0000 (15:18 +0000)]
Test attribute with defaulted long enums and a failing reallocator
Rhodri James [Thu, 9 Mar 2017 15:08:06 +0000 (15:08 +0000)]
Test attribute list with a NOTATION and default value
Rhodri James [Thu, 9 Mar 2017 14:46:44 +0000 (14:46 +0000)]
Test attribute with implied large enum with a failing reallocator
Rhodri James [Thu, 9 Mar 2017 14:15:47 +0000 (14:15 +0000)]
Expand attribute declaration test
Rhodri James [Thu, 9 Mar 2017 13:43:19 +0000 (13:43 +0000)]
Test attribute list handling with #REQUIRED
Sebastian Pipping [Sat, 22 Jul 2017 19:39:56 +0000 (21:39 +0200)]
runtests.c: Resolve setting handlers twice
Was introduced at cherry-pick
ab534390603806b78d3d5e54a60a50fc0a6de3b5
by mistake.
Sebastian Pipping [Sat, 22 Jul 2017 19:36:55 +0000 (21:36 +0200)]
runtests.c: Fix memleaks
Rhodri James [Wed, 8 Mar 2017 18:39:36 +0000 (18:39 +0000)]
Test long attribute enums with a failing reallocator
Rhodri James [Wed, 8 Mar 2017 17:54:49 +0000 (17:54 +0000)]
Test attribute enum handling with failing allocator
Rhodri James [Wed, 8 Mar 2017 17:15:37 +0000 (17:15 +0000)]
Test attribute enum value handling
Rhodri James [Wed, 8 Mar 2017 16:13:35 +0000 (16:13 +0000)]
Test foreign DTD with no contents
Rhodri James [Wed, 8 Mar 2017 15:47:33 +0000 (15:47 +0000)]
Test foreign DTD with rejecting standalone handler
Rhodri James [Wed, 8 Mar 2017 15:28:29 +0000 (15:28 +0000)]
Test Foreign DTD setting with failing allocator
Rhodri James [Wed, 8 Mar 2017 14:24:41 +0000 (14:24 +0000)]
Test XML_UseForeignDTD without external subset
Rhodri James [Wed, 8 Mar 2017 12:59:35 +0000 (12:59 +0000)]
Test XML_UseForeignDTD with a doctype
Rhodri James [Tue, 7 Mar 2017 19:45:39 +0000 (19:45 +0000)]
Add entity declaration handler to public parameter entity test
Rhodri James [Tue, 7 Mar 2017 18:47:29 +0000 (18:47 +0000)]
Test long public name in doctype allocator test
Rhodri James [Tue, 7 Mar 2017 18:21:39 +0000 (18:21 +0000)]
Test invalid name for public doctype
Rhodri James [Tue, 7 Mar 2017 17:51:36 +0000 (17:51 +0000)]
Expand public doctype allocation test
Rhodri James [Tue, 7 Mar 2017 17:10:21 +0000 (17:10 +0000)]
Test allocation failure paths parsing a public doctype
Rhodri James [Mon, 6 Mar 2017 15:30:59 +0000 (15:30 +0000)]
Test public parameter entity with failing allocator