]>
granicus.if.org Git - libexpat/log
Rhodri James [Tue, 21 Feb 2017 16:04:56 +0000 (16:04 +0000)]
Use meaningful constants for return values from handlers
Rhodri James [Fri, 17 Feb 2017 12:54:50 +0000 (12:54 +0000)]
Tweak attribute list to improve test coverage
Rhodri James [Thu, 16 Feb 2017 18:28:37 +0000 (18:28 +0000)]
Test reallocation of attribute list with failing reallocator
Rhodri James [Tue, 14 Feb 2017 13:56:55 +0000 (13:56 +0000)]
Tweak test_alloc_external_entity to improve code coverage
Rhodri James [Tue, 14 Feb 2017 12:20:08 +0000 (12:20 +0000)]
Extend skip handler test coverage
Rhodri James [Wed, 15 Feb 2017 13:07:36 +0000 (13:07 +0000)]
Test features are appropriately set
Rhodri James [Mon, 13 Feb 2017 19:35:22 +0000 (19:35 +0000)]
Test predefined entities
Rhodri James [Fri, 10 Feb 2017 16:37:22 +0000 (16:37 +0000)]
Make final reallocation test safe
Rhodri James [Wed, 8 Feb 2017 17:08:50 +0000 (17:08 +0000)]
Test robustness against failing reallocator for parsing long names
Rhodri James [Tue, 7 Mar 2017 15:39:37 +0000 (15:39 +0000)]
Refactor long test data string
Rhodri James [Tue, 7 Feb 2017 18:05:55 +0000 (18:05 +0000)]
Extend XML_GetBuffer testing coverage
Rhodri James [Tue, 21 Feb 2017 12:47:28 +0000 (12:47 +0000)]
Fix message in XML declaration handler
Rhodri James [Tue, 7 Mar 2017 15:28:58 +0000 (15:28 +0000)]
Restore groupSize if (re)allocation of groupConnector fails
Rhodri James [Tue, 7 Mar 2017 15:23:52 +0000 (15:23 +0000)]
Ensure unparsed entity handler gets set
Revise dummy handlers to flag when they are executed, and ensure
that they are executed in the test. Add XML to get the deprecated
unparsed entity handler executed, and ensure that the allocation
check fails each possible allocator in sequence despite the
caching of some allocations in the parser object.
NOTE that this commit does not pass check because of an allocation
bug.
Rhodri James [Mon, 6 Feb 2017 15:49:43 +0000 (15:49 +0000)]
Split combined triplet_count into two distinct flags
Sebastian Pipping [Sun, 16 Jul 2017 21:01:15 +0000 (23:01 +0200)]
Revert "Fix structure initialisation not to cause warnings"
This reverts commit
894033fab8487164d7e2f20141bca8ad75d28311 .
Sebastian Pipping [Sun, 16 Jul 2017 17:09:09 +0000 (19:09 +0200)]
Merge branch 'coverage'
Sebastian Pipping [Sun, 16 Jul 2017 17:07:50 +0000 (19:07 +0200)]
runtests.c: Fix memleaks
Rhodri James [Mon, 27 Feb 2017 15:39:47 +0000 (15:39 +0000)]
Increase test coverage of ignore section processing
Rhodri James [Mon, 27 Feb 2017 15:27:29 +0000 (15:27 +0000)]
Refactor previous test to use existing test functions
Rhodri James [Fri, 24 Feb 2017 19:12:26 +0000 (19:12 +0000)]
Test a broken IGNORE section is faulted
Rhodri James [Fri, 24 Feb 2017 18:39:38 +0000 (18:39 +0000)]
Exercise conditional exclusion code
Rhodri James [Fri, 24 Feb 2017 17:05:37 +0000 (17:05 +0000)]
Test suspending the parse in the middle of CDATA handling
Rhodri James [Fri, 24 Feb 2017 16:58:44 +0000 (16:58 +0000)]
Test aborting parse while processing CDATA
Rhodri James [Fri, 24 Feb 2017 14:59:44 +0000 (14:59 +0000)]
Test a variety of incomplete UTF-16 CDATA strings
Rhodri James [Fri, 24 Feb 2017 14:11:45 +0000 (14:11 +0000)]
Test handling of UTF-16 supplementary plane characters
Rhodri James [Fri, 24 Feb 2017 13:12:41 +0000 (13:12 +0000)]
Test long UTF-16 CDATA (more than internal buffer size)
Rhodri James [Thu, 23 Feb 2017 17:48:39 +0000 (17:48 +0000)]
Test CDATA correctly runs through a default handler
In particular exercises a code path dealing with newlines
Rhodri James [Thu, 23 Feb 2017 16:57:12 +0000 (16:57 +0000)]
Test handling of CDATA in an external entity parser
Rhodri James [Thu, 23 Feb 2017 16:04:12 +0000 (16:04 +0000)]
Test reallocation of URI in re-used binding with dodgy reallocator
Rhodri James [Thu, 23 Feb 2017 15:22:40 +0000 (15:22 +0000)]
Test w3.org xmlns URL is correctly rejected
Rhodri James [Thu, 23 Feb 2017 15:13:12 +0000 (15:13 +0000)]
Test rejection of invalid attribute 'xml' and use of w3.org
Rhodri James [Thu, 23 Feb 2017 13:31:59 +0000 (13:31 +0000)]
Test for correct rejection of 'xmlns' as an attribute
Rhodri James [Wed, 22 Feb 2017 18:41:31 +0000 (18:41 +0000)]
Test extension of URI buffer shared between element tags
Rhodri James [Wed, 22 Feb 2017 17:49:11 +0000 (17:49 +0000)]
Test medium-length element name with namespaces and a failing allocator
Rhodri James [Wed, 22 Feb 2017 16:54:35 +0000 (16:54 +0000)]
Test mixed prefixed and unprefixed attributes in a namespace
Rhodri James [Wed, 22 Feb 2017 16:24:18 +0000 (16:24 +0000)]
Test allocator handling of attribute with long namespace
Sebastian Pipping [Sun, 16 Jul 2017 16:58:21 +0000 (18:58 +0200)]
runtests.c: Fix memleaks
Rhodri James [Wed, 22 Feb 2017 15:14:50 +0000 (15:14 +0000)]
Test attribute table hash collision handling
Rhodri James [Tue, 21 Feb 2017 19:36:07 +0000 (19:36 +0000)]
Test long attribute names in a namespace with failing allocator
Rhodri James [Tue, 21 Feb 2017 18:25:41 +0000 (18:25 +0000)]
Extend test coverage of external entity handler parameters
Rhodri James [Tue, 21 Feb 2017 17:24:39 +0000 (17:24 +0000)]
Comment change: explain why attribute count is twice what you expect
Rhodri James [Tue, 21 Feb 2017 16:33:01 +0000 (16:33 +0000)]
Check NULLing the encoding works before the parse is started
Rhodri James [Tue, 21 Feb 2017 16:26:58 +0000 (16:26 +0000)]
Test for specific error from XML_UseForeignDTD()
Rhodri James [Tue, 21 Feb 2017 15:29:31 +0000 (15:29 +0000)]
Fix structure initialisation not to cause warnings
Rhodri James [Fri, 17 Feb 2017 18:58:08 +0000 (18:58 +0000)]
Add test case for long URIs in attributes with failing allocator
Rhodri James [Fri, 17 Feb 2017 16:32:21 +0000 (16:32 +0000)]
Restore original nsAttsSize if reallocation fails
Rhodri James [Fri, 17 Feb 2017 16:21:17 +0000 (16:21 +0000)]
Test reallocation failure in xmlns attribute handling
Note that this commit provokes a segfault due to a bug in
storeAtts()
Rhodri James [Fri, 17 Feb 2017 15:18:34 +0000 (15:18 +0000)]
Test rejection of unbound prefix, improve coverage of attribute handling
Rhodri James [Fri, 17 Feb 2017 12:01:30 +0000 (12:01 +0000)]
Revert recorded size of attribute memory when reallocation fails
Rhodri James [Thu, 16 Feb 2017 17:44:53 +0000 (17:44 +0000)]
Test long namespace names (1024 characters)
Rhodri James [Thu, 16 Feb 2017 16:09:28 +0000 (16:09 +0000)]
Refactor namespace allocation tests
Rhodri James [Tue, 14 Feb 2017 11:50:40 +0000 (11:50 +0000)]
Extend code path coverage of entity handling
Rhodri James [Wed, 15 Feb 2017 19:11:19 +0000 (19:11 +0000)]
Add test coverage for comments with a failing allocator
Rhodri James [Wed, 15 Feb 2017 18:49:24 +0000 (18:49 +0000)]
More coverage of PIs with failing allocator
Rhodri James [Wed, 15 Feb 2017 18:17:25 +0000 (18:17 +0000)]
Test parsing a PI with a failing allocator
Rhodri James [Wed, 15 Feb 2017 17:24:06 +0000 (17:24 +0000)]
Expand really long line test for encoded CDATA handling
Rhodri James [Wed, 15 Feb 2017 15:48:00 +0000 (15:48 +0000)]
Test right square bracket handling in external entity parses
Rhodri James [Wed, 15 Feb 2017 15:02:45 +0000 (15:02 +0000)]
More tests for the right square bracket control paths
Rhodri James [Wed, 15 Feb 2017 13:50:04 +0000 (13:50 +0000)]
Test handling of right square bracket at end of content data
Rhodri James [Tue, 14 Feb 2017 18:22:53 +0000 (18:22 +0000)]
Extend ASCII CDATA test to cover a default handler
Rhodri James [Tue, 14 Feb 2017 17:57:58 +0000 (17:57 +0000)]
Add CDATA section handlers for increased test coverage
Rhodri James [Tue, 14 Feb 2017 17:36:38 +0000 (17:36 +0000)]
Add default handler to namespace failing allocation test
Increases code coverage. Also tweaked allocation counts for
better coverage
Rhodri James [Tue, 14 Feb 2017 16:40:55 +0000 (16:40 +0000)]
Add default handlers to character entity tests to extend coverage
Rhodri James [Tue, 14 Feb 2017 16:26:27 +0000 (16:26 +0000)]
Extend coverage of namespace start and end handlers
Rhodri James [Tue, 14 Feb 2017 16:13:06 +0000 (16:13 +0000)]
Test external entity with no handler
Rhodri James [Tue, 14 Feb 2017 16:04:56 +0000 (16:04 +0000)]
Tweak tests for greater allocation failure coverage
Rhodri James [Tue, 14 Feb 2017 15:31:31 +0000 (15:31 +0000)]
More external entity allocation failure coverage
Rhodri James [Mon, 13 Feb 2017 18:05:54 +0000 (18:05 +0000)]
Extend coverage of partial character parsing
Rhodri James [Mon, 13 Feb 2017 17:59:47 +0000 (17:59 +0000)]
Test trailing CR in external entity parse
Rhodri James [Fri, 10 Feb 2017 18:17:01 +0000 (18:17 +0000)]
Test handling of trailing CR (rather than newline)
Sebastian Pipping [Sun, 16 Jul 2017 16:33:07 +0000 (18:33 +0200)]
Merge branch 'coverage-review'
Sebastian Pipping [Sun, 16 Jul 2017 16:27:00 +0000 (18:27 +0200)]
runtests.c: Fix memleaks
Rhodri James [Fri, 10 Feb 2017 12:52:55 +0000 (12:52 +0000)]
Extend test coverage of external entity suspension
Rhodri James [Thu, 9 Feb 2017 16:55:35 +0000 (16:55 +0000)]
Test suspending from an external entity's XML declaration handler
Sebastian Pipping [Sun, 16 Jul 2017 00:11:54 +0000 (02:11 +0200)]
Merge branch 'coverage-review'
Sebastian Pipping [Sun, 16 Jul 2017 00:09:23 +0000 (02:09 +0200)]
runtests.c: Fix memory leaks
Sebastian Pipping [Sun, 16 Jul 2017 00:06:29 +0000 (02:06 +0200)]
runtests.c: Polish test_ext_entity_invalid_parse
Rhodri James [Thu, 9 Feb 2017 15:23:06 +0000 (15:23 +0000)]
Refactor and extend external entity parse error testing
Rhodri James [Thu, 9 Feb 2017 14:10:33 +0000 (14:10 +0000)]
Check parse errors in external entity parsers
Rhodri James [Thu, 9 Feb 2017 12:52:08 +0000 (12:52 +0000)]
Test UTF-8 BOM is recognised in UTF-8 external entity
Rhodri James [Thu, 9 Feb 2017 12:08:03 +0000 (12:08 +0000)]
Test unknown encoding in external entity parser (increase coverage)
Rhodri James [Wed, 8 Feb 2017 18:28:39 +0000 (18:28 +0000)]
Check handling of long element names with namespaces
Rhodri James [Wed, 8 Feb 2017 15:26:18 +0000 (15:26 +0000)]
Refactor allocator test support
Sebastian Pipping [Sat, 15 Jul 2017 17:48:55 +0000 (19:48 +0200)]
Merge branch 'travis-ci' (issue #23)
Sebastian Pipping [Sat, 15 Jul 2017 17:42:18 +0000 (19:42 +0200)]
Travis CI: Ensure that Clang 4.0 is installed
Sebastian Pipping [Sat, 15 Jul 2017 17:35:38 +0000 (19:35 +0200)]
qa.sh: Use clang for mode "address" to detect memory leaks (#23)
Sebastian Pipping [Sat, 15 Jul 2017 17:29:48 +0000 (19:29 +0200)]
qa.sh: Rename BASE_FLAGS to BASE_COMPILE_FLAGS
Sebastian Pipping [Sat, 15 Jul 2017 17:15:49 +0000 (19:15 +0200)]
Merge branch 'make-check-memory' (issue #23)
Sebastian Pipping [Sat, 15 Jul 2017 17:12:29 +0000 (19:12 +0200)]
Changes: Document test suite memleak fixes
Sebastian Pipping [Sat, 15 Jul 2017 17:09:30 +0000 (19:09 +0200)]
minicheck.c: Protect against potential NULL dereference
Sebastian Pipping [Sat, 15 Jul 2017 17:07:30 +0000 (19:07 +0200)]
minicheck.c: Rename *_dispose to *_free
Rhodri James [Fri, 14 Jul 2017 16:55:51 +0000 (17:55 +0100)]
Free the external entity parser in external_entity_loader_set_encoding()
Removes the last of the memory leaks detected by AddressSanitizer
in the test suite (see Issue #23)
Rhodri James [Fri, 14 Jul 2017 16:53:56 +0000 (17:53 +0100)]
Free all the data structures associated with test cases.
Removes some of the memory leaks discovered by AddressSanitizer
in the test suite (see Issue #23)
Rhodri James [Fri, 14 Jul 2017 16:33:59 +0000 (17:33 +0100)]
Free the content model in dummy_element_decl_handler()
Removes some of the memory leaks found by AddressSanitizer in
the test suite (see Issue #23)
Rhodri James [Fri, 14 Jul 2017 16:22:54 +0000 (17:22 +0100)]
Free external entity parser in external_entity_param()
Removes some of the memory leaks detected by AddressSanitizer in
the test suite (see Issue #23).
Rhodri James [Fri, 14 Jul 2017 16:15:12 +0000 (17:15 +0100)]
Free external entity parser in external_entity_suspender()
Removes some memory leaks detected by AddressSanitizer in
the test suite (see Issue #23)
Rhodri James [Fri, 14 Jul 2017 16:12:31 +0000 (17:12 +0100)]
Free external entity parser in external_entity_param_checker()
Removes some of the memory leaks detected by AddressSanitizer
in the test suite (see Issue #23)
Rhodri James [Fri, 14 Jul 2017 15:59:24 +0000 (16:59 +0100)]
Free external entity parser in external_entity_resetter() when done
Deals with some of the memory leaks found by AddressSanitizer in
the test suite (Issue #23)
Rhodri James [Fri, 14 Jul 2017 15:50:53 +0000 (16:50 +0100)]
Free external entity parser in external_entity_loader() when done.
Removes some memory leaks detected by AddressSanitizer in the
test suite (see Issue #23)