]> granicus.if.org Git - libexpat/log
libexpat
7 years agoTest error in nested external entity substitution
Rhodri James [Fri, 21 Apr 2017 18:04:46 +0000 (19:04 +0100)]
Test error in nested external entity substitution

7 years agoTest another different code path for skipped external entity
Rhodri James [Fri, 21 Apr 2017 16:08:00 +0000 (17:08 +0100)]
Test another different code path for skipped external entity

7 years agoTest different code path for skipping missing external entity
Rhodri James [Fri, 21 Apr 2017 15:45:49 +0000 (16:45 +0100)]
Test different code path for skipping missing external entity

7 years agoTest recursive parameter entity
Rhodri James [Fri, 21 Apr 2017 14:21:02 +0000 (15:21 +0100)]
Test recursive parameter entity

7 years agoTest missing external entity is skipped
Rhodri James [Fri, 21 Apr 2017 12:12:51 +0000 (13:12 +0100)]
Test missing external entity is skipped

7 years agoTest general entity substitution in standalone internal param entity
Rhodri James [Thu, 20 Apr 2017 13:58:49 +0000 (14:58 +0100)]
Test general entity substitution in standalone internal param entity

7 years agoTest attribute value of a predefined entity with a duff allocator
Rhodri James [Fri, 7 Apr 2017 18:53:36 +0000 (19:53 +0100)]
Test attribute value of a predefined entity with a duff allocator

7 years agoTest whitespace attribute value with dodgy allocator
Rhodri James [Fri, 7 Apr 2017 18:38:56 +0000 (19:38 +0100)]
Test whitespace attribute value with dodgy allocator

7 years agoTest attribute value with trailing CR
Rhodri James [Fri, 7 Apr 2017 17:29:18 +0000 (18:29 +0100)]
Test attribute value with trailing CR

7 years agoTest long attribute value with failing allocator
Rhodri James [Fri, 7 Apr 2017 17:04:13 +0000 (18:04 +0100)]
Test long attribute value with failing allocator

7 years agoTest long attribute value with character ref and a 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

7 years agoTest incomplete param ref in attribute default is rejected
Rhodri James [Fri, 17 Mar 2017 18:10:10 +0000 (18:10 +0000)]
Test incomplete param ref in attribute default is rejected

7 years agoTest invalid character in default attribute is rejected
Rhodri James [Fri, 17 Mar 2017 17:44:23 +0000 (17:44 +0000)]
Test invalid character in default attribute is rejected

7 years agoTest long attribute with a dodgy reallocator
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.

7 years agoTest restarting an errored parser returns the same error
Rhodri James [Fri, 17 Mar 2017 15:58:16 +0000 (15:58 +0000)]
Test restarting an errored parser returns the same error

7 years agoCheck that resumed general entity parse can be re-suspended
Rhodri James [Fri, 17 Mar 2017 15:38:09 +0000 (15:38 +0000)]
Check that resumed general entity parse can be re-suspended

7 years agoTest resuming a general entity catches XML errors
Rhodri James [Fri, 17 Mar 2017 15:26:12 +0000 (15:26 +0000)]
Test resuming a general entity catches XML errors

7 years agoTest suspending and resuming parse in parameter entity substitution
Rhodri James [Fri, 17 Mar 2017 15:17:43 +0000 (15:17 +0000)]
Test suspending and resuming parse in parameter entity substitution

7 years agoTest suspending and resuming parse during entity substitution
Rhodri James [Fri, 17 Mar 2017 13:35:28 +0000 (13:35 +0000)]
Test suspending and resuming parse during entity substitution

7 years agoAdd test to ensure a hash collision while expanding hash table
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.

7 years agoTest suspending parse during epilog
Rhodri James [Thu, 16 Mar 2017 17:45:46 +0000 (17:45 +0000)]
Test suspending parse during epilog

7 years agoTest aborting in the epilog not from a CR character
Rhodri James [Thu, 16 Mar 2017 17:20:04 +0000 (17:20 +0000)]
Test aborting in the epilog not from a CR character

7 years agoTest handling of partial characters at the end of the epilog
Rhodri James [Thu, 16 Mar 2017 17:12:52 +0000 (17:12 +0000)]
Test handling of partial characters at the end of the epilog

7 years agoTest incomplete token in epilog
Rhodri James [Thu, 16 Mar 2017 16:51:17 +0000 (16:51 +0000)]
Test incomplete token in epilog

7 years agoTest comment in epilog with failing allocator
Rhodri James [Thu, 16 Mar 2017 16:28:04 +0000 (16:28 +0000)]
Test comment in epilog with failing allocator

7 years agoTest PI handling in epilog with a failing allocator
Rhodri James [Thu, 16 Mar 2017 16:10:06 +0000 (16:10 +0000)]
Test PI handling in epilog with a failing allocator

7 years agoExtend abort test to cover more epilog code
Rhodri James [Thu, 16 Mar 2017 15:25:47 +0000 (15:25 +0000)]
Extend abort test to cover more epilog code

7 years agoTest aborting parse during epilog processing
Rhodri James [Thu, 16 Mar 2017 14:58:38 +0000 (14:58 +0000)]
Test aborting parse during epilog processing

7 years agoTest suspending parse during an XML declaration
Rhodri James [Thu, 16 Mar 2017 13:58:13 +0000 (13:58 +0000)]
Test suspending parse during an XML declaration

7 years agoShuffle code to keep similar things together.
Rhodri James [Thu, 16 Mar 2017 12:59:39 +0000 (12:59 +0000)]
Shuffle code to keep similar things together.

No functional changes

7 years agoTest group with many elements and a failing reallocator
Rhodri James [Thu, 16 Mar 2017 12:53:13 +0000 (12:53 +0000)]
Test group with many elements and a failing reallocator

7 years agoTest deeply nested group parsing with a failing allocator
Rhodri James [Thu, 16 Mar 2017 12:00:36 +0000 (12:00 +0000)]
Test deeply nested group parsing with a failing allocator

7 years agoAdd test for external parameter entity with "not standalone" handler
Rhodri James [Wed, 15 Mar 2017 19:01:52 +0000 (19:01 +0000)]
Add test for external parameter entity with "not standalone" handler

7 years agoTest external param entity with no further external parser
Rhodri James [Wed, 15 Mar 2017 18:10:01 +0000 (18:10 +0000)]
Test external param entity with no further external parser

7 years agoTest undefined system parameter entity in external DTD
Rhodri James [Wed, 15 Mar 2017 17:52:49 +0000 (17:52 +0000)]
Test undefined system parameter entity in external DTD

7 years agoTest recursive parameter entity is rejected
Rhodri James [Wed, 15 Mar 2017 17:00:23 +0000 (17:00 +0000)]
Test recursive parameter entity is rejected

7 years agoTest skipped parameter entity in external DTD triggers handler
Rhodri James [Wed, 15 Mar 2017 15:53:46 +0000 (15:53 +0000)]
Test skipped parameter entity in external DTD triggers handler

7 years agoReview 2017-03-13: refactor XML_Expat_Version test
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.

7 years agoReview 2017-03-13: construct test string to avoid magic numbers
Rhodri James [Wed, 15 Mar 2017 12:54:32 +0000 (12:54 +0000)]
Review 2017-03-13: construct test string to avoid magic numbers

7 years agoReview 2017-03-13: replace magic number with appropriate string len
Rhodri James [Wed, 15 Mar 2017 12:33:03 +0000 (12:33 +0000)]
Review 2017-03-13: replace magic number with appropriate string len

7 years agoRemove warning about potentially unset variable in tests
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.

7 years agoTest standalone parameter entity coverage
Rhodri James [Tue, 14 Mar 2017 16:23:08 +0000 (16:23 +0000)]
Test standalone parameter entity coverage

7 years agoTest substituted public entity with long name against failing realloc
Rhodri James [Mon, 13 Mar 2017 16:22:56 +0000 (16:22 +0000)]
Test substituted public entity with long name against failing realloc

7 years agoTest group with choice in element declaration
Rhodri James [Mon, 13 Mar 2017 14:57:18 +0000 (14:57 +0000)]
Test group with choice in element declaration

7 years agoAdd element decl handler to nested group reallocation test
Rhodri James [Mon, 13 Mar 2017 14:04:10 +0000 (14:04 +0000)]
Add element decl handler to nested group reallocation test

7 years agoAdd element declaration handler to nested group test
Rhodri James [Mon, 13 Mar 2017 13:48:23 +0000 (13:48 +0000)]
Add element declaration handler to nested group test

7 years agoTest nested groups with a failing reallocator
Rhodri James [Mon, 13 Mar 2017 11:35:29 +0000 (11:35 +0000)]
Test nested groups with a failing reallocator

7 years agoTest deeply-nested groups
Rhodri James [Fri, 10 Mar 2017 19:12:06 +0000 (19:12 +0000)]
Test deeply-nested groups

7 years agoTest public notation with no system ID
Rhodri James [Fri, 10 Mar 2017 18:21:15 +0000 (18:21 +0000)]
Test public notation with no system ID

7 years agoTest system notation with failing allocator
Rhodri James [Fri, 10 Mar 2017 17:59:35 +0000 (17:59 +0000)]
Test system notation with failing allocator

7 years agoTest public notation with long system ID against 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

7 years agoExtend notation allocation test with notation declaration handler
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.

7 years agoExtend PE allocation test with long entity name
Rhodri James [Fri, 10 Mar 2017 15:56:49 +0000 (15:56 +0000)]
Extend PE allocation test with long entity name

7 years agoTest DTD processing stops for undefined parameter entities
Rhodri James [Fri, 10 Mar 2017 15:07:48 +0000 (15:07 +0000)]
Test DTD processing stops for undefined parameter entities

7 years agoTest redefining predefined entities
Rhodri James [Thu, 9 Mar 2017 19:00:42 +0000 (19:00 +0000)]
Test redefining predefined entities

7 years agoAdd entity decl handler to notation entity allocation test
Rhodri James [Thu, 9 Mar 2017 17:57:47 +0000 (17:57 +0000)]
Add entity decl handler to notation entity allocation test

7 years agoTest notation entity with failing allocator
Rhodri James [Thu, 9 Mar 2017 17:52:37 +0000 (17:52 +0000)]
Test notation entity with failing allocator

7 years agoExtend NotStandalone tests to also exclude external entity handlers
Rhodri James [Thu, 9 Mar 2017 17:05:50 +0000 (17:05 +0000)]
Extend NotStandalone tests to also exclude external entity handlers

7 years agoTest public doctype with long public name against failing allocator
Rhodri James [Thu, 9 Mar 2017 16:28:47 +0000 (16:28 +0000)]
Test public doctype with long public name against failing allocator

7 years agoTest attribute with defaulted long enums and a failing reallocator
Rhodri James [Thu, 9 Mar 2017 15:18:48 +0000 (15:18 +0000)]
Test attribute with defaulted long enums and a failing reallocator

7 years agoTest attribute list with a NOTATION and default value
Rhodri James [Thu, 9 Mar 2017 15:08:06 +0000 (15:08 +0000)]
Test attribute list with a NOTATION and default value

7 years agoTest attribute with implied large enum with a failing reallocator
Rhodri James [Thu, 9 Mar 2017 14:46:44 +0000 (14:46 +0000)]
Test attribute with implied large enum with a failing reallocator

7 years agoExpand attribute declaration test
Rhodri James [Thu, 9 Mar 2017 14:15:47 +0000 (14:15 +0000)]
Expand attribute declaration test

7 years agoTest attribute list handling with #REQUIRED
Rhodri James [Thu, 9 Mar 2017 13:43:19 +0000 (13:43 +0000)]
Test attribute list handling with #REQUIRED

7 years agoruntests.c: Resolve setting handlers twice
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.

7 years agoruntests.c: Fix memleaks
Sebastian Pipping [Sat, 22 Jul 2017 19:36:55 +0000 (21:36 +0200)]
runtests.c: Fix memleaks

7 years agoTest long attribute enums with a failing reallocator
Rhodri James [Wed, 8 Mar 2017 18:39:36 +0000 (18:39 +0000)]
Test long attribute enums with a failing reallocator

7 years agoTest attribute enum handling with failing allocator
Rhodri James [Wed, 8 Mar 2017 17:54:49 +0000 (17:54 +0000)]
Test attribute enum handling with failing allocator

7 years agoTest attribute enum value handling
Rhodri James [Wed, 8 Mar 2017 17:15:37 +0000 (17:15 +0000)]
Test attribute enum value handling

7 years agoTest foreign DTD with no contents
Rhodri James [Wed, 8 Mar 2017 16:13:35 +0000 (16:13 +0000)]
Test foreign DTD with no contents

7 years agoTest foreign DTD with rejecting standalone handler
Rhodri James [Wed, 8 Mar 2017 15:47:33 +0000 (15:47 +0000)]
Test foreign DTD with rejecting standalone handler

7 years agoTest Foreign DTD setting with failing allocator
Rhodri James [Wed, 8 Mar 2017 15:28:29 +0000 (15:28 +0000)]
Test Foreign DTD setting with failing allocator

7 years agoTest XML_UseForeignDTD without external subset
Rhodri James [Wed, 8 Mar 2017 14:24:41 +0000 (14:24 +0000)]
Test XML_UseForeignDTD without external subset

7 years agoTest XML_UseForeignDTD with a doctype
Rhodri James [Wed, 8 Mar 2017 12:59:35 +0000 (12:59 +0000)]
Test XML_UseForeignDTD with a doctype

7 years agoAdd entity declaration handler to public parameter entity test
Rhodri James [Tue, 7 Mar 2017 19:45:39 +0000 (19:45 +0000)]
Add entity declaration handler to public parameter entity test

7 years agoTest long public name in doctype allocator test
Rhodri James [Tue, 7 Mar 2017 18:47:29 +0000 (18:47 +0000)]
Test long public name in doctype allocator test

7 years agoTest invalid name for public doctype
Rhodri James [Tue, 7 Mar 2017 18:21:39 +0000 (18:21 +0000)]
Test invalid name for public doctype

7 years agoExpand public doctype allocation test
Rhodri James [Tue, 7 Mar 2017 17:51:36 +0000 (17:51 +0000)]
Expand public doctype allocation test

7 years agoTest allocation failure paths parsing a public doctype
Rhodri James [Tue, 7 Mar 2017 17:10:21 +0000 (17:10 +0000)]
Test allocation failure paths parsing a public doctype

7 years agoTest public parameter entity with failing allocator
Rhodri James [Mon, 6 Mar 2017 15:30:59 +0000 (15:30 +0000)]
Test public parameter entity with failing allocator

7 years agoTest various errors in parameter entity values
Rhodri James [Fri, 3 Mar 2017 18:22:45 +0000 (18:22 +0000)]
Test various errors in parameter entity values

7 years agoTest invalid character in foreign DTD parameter entity
Rhodri James [Thu, 2 Mar 2017 19:59:41 +0000 (19:59 +0000)]
Test invalid character in foreign DTD parameter entity

7 years agoFix error reporting in external entity test handler
Rhodri James [Thu, 2 Mar 2017 19:58:54 +0000 (19:58 +0000)]
Fix error reporting in external entity test handler

7 years agoTest UTF-8 byte order mark in parameter entity value parsing
Rhodri James [Thu, 2 Mar 2017 19:08:27 +0000 (19:08 +0000)]
Test UTF-8 byte order mark in parameter entity value parsing

7 years agoTest aborting external entity value parser
Rhodri James [Thu, 2 Mar 2017 18:42:58 +0000 (18:42 +0000)]
Test aborting external entity value parser

7 years agoTest malformed XML/text declaration rejected by ext entity parser
Rhodri James [Thu, 2 Mar 2017 16:46:29 +0000 (16:46 +0000)]
Test malformed XML/text declaration rejected by ext entity parser

7 years agoTest XML declaration in external entity processing
Rhodri James [Thu, 2 Mar 2017 16:22:27 +0000 (16:22 +0000)]
Test XML declaration in external entity processing

7 years agoExtend external parameter entity nested parser testing
Rhodri James [Wed, 1 Mar 2017 17:22:24 +0000 (17:22 +0000)]
Extend external parameter entity nested parser testing

7 years agoruntests.c: Fix memleaks
Sebastian Pipping [Sat, 22 Jul 2017 19:28:20 +0000 (21:28 +0200)]
runtests.c: Fix memleaks

7 years agoTest nested external parser handling
Rhodri James [Tue, 28 Feb 2017 17:55:37 +0000 (17:55 +0000)]
Test nested external parser handling

7 years agoTest unknown encoding handling in external parameter entity handler
Rhodri James [Tue, 28 Feb 2017 16:51:42 +0000 (16:51 +0000)]
Test unknown encoding handling in external parameter entity handler

7 years agoTest a bad encoding is rejected at initialisation time
Rhodri James [Tue, 28 Feb 2017 15:33:55 +0000 (15:33 +0000)]
Test a bad encoding is rejected at initialisation time

7 years agoTest declaring a UTF-16 encoding while actually in UTF-8 is rejected
Rhodri James [Tue, 28 Feb 2017 15:07:07 +0000 (15:07 +0000)]
Test declaring a UTF-16 encoding while actually in UTF-8 is rejected

7 years agoTest XML declaration with long encoding name and failing allocator
Rhodri James [Tue, 28 Feb 2017 14:36:13 +0000 (14:36 +0000)]
Test XML declaration with long encoding name and failing allocator

7 years agoTest XML declaration handling with a duff allocator
Rhodri James [Tue, 28 Feb 2017 13:23:23 +0000 (13:23 +0000)]
Test XML declaration handling with a duff allocator

7 years agoTest external entity parsing suppressed with UNLESS_STANDALONE parameter
Rhodri James [Tue, 28 Feb 2017 12:23:19 +0000 (12:23 +0000)]
Test external entity parsing suppressed with UNLESS_STANDALONE parameter

7 years agoTest partial UTF-8 characters in IGNORE section
Rhodri James [Mon, 27 Feb 2017 17:58:29 +0000 (17:58 +0000)]
Test partial UTF-8 characters in IGNORE section

7 years agoRefactor to reduce proliferation of external entity handlers
Rhodri James [Mon, 27 Feb 2017 17:34:53 +0000 (17:34 +0000)]
Refactor to reduce proliferation of external entity handlers

7 years agoMerge branch 'realloc-dangling-pointer' (pull request #85)
Sebastian Pipping [Thu, 20 Jul 2017 20:18:59 +0000 (22:18 +0200)]
Merge branch 'realloc-dangling-pointer' (pull request #85)

7 years agoChanges: Document dangling pointer fix
Sebastian Pipping [Thu, 20 Jul 2017 20:17:52 +0000 (22:17 +0200)]
Changes: Document dangling pointer fix