]>
granicus.if.org Git - libexpat/log
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)
Rhodri James [Fri, 14 Jul 2017 15:49:50 +0000 (16:49 +0100)]
Use correct parser to signal failure in external_entity_loader()
Sebastian Pipping [Wed, 12 Jul 2017 21:55:49 +0000 (23:55 +0200)]
xmlparse.c: Adjust _GNU_SOURCE define in favor of Python (#77)
Sebastian Pipping [Wed, 12 Jul 2017 20:51:25 +0000 (22:51 +0200)]
Changes: Improve 2.2.2 security notes
Sebastian Pipping [Wed, 12 Jul 2017 19:09:39 +0000 (21:09 +0200)]
xmlparse.c: Avoid _GNU_SOURCE macro redefinition (#77)
Sebastian Pipping [Wed, 12 Jul 2017 18:20:22 +0000 (20:20 +0200)]
xmlparse.c: Address compile warning with -DNDEBUG (issue #76)
Sebastian Pipping [Wed, 12 Jul 2017 18:15:18 +0000 (20:15 +0200)]
runtests.c: Protect against -DNDEBUG (issue #76 related)
Sebastian Pipping [Wed, 12 Jul 2017 16:58:20 +0000 (18:58 +0200)]
Prepare release version 2.2.2
Sebastian Pipping [Wed, 12 Jul 2017 16:59:39 +0000 (18:59 +0200)]
Bump version info from 7:3:6 to 7:4:6
Sebastian Pipping [Wed, 5 Jul 2017 20:49:51 +0000 (22:49 +0200)]
Move to C99 (#73) and fix ULL integer literals (#69)
Sebastian Pipping [Wed, 12 Jul 2017 16:32:16 +0000 (18:32 +0200)]
Travis CI: Use -DXML_POOR_ENTROPY to fix compilation
I would use libbsd but it's broken on Ubuntu trusty:
```
/usr/include/bsd/stdlib.h:52:27: error: unknown type name 'u_char'
void arc4random_addrandom(u_char *dat, int datlen);
^
```
https://travis-ci.org/libexpat/libexpat/jobs/
252880355
Sebastian Pipping [Wed, 12 Jul 2017 16:06:21 +0000 (18:06 +0200)]
Changes: Document low quality entropy detection (related to #43)
Sebastian Pipping [Wed, 12 Jul 2017 16:02:04 +0000 (18:02 +0200)]
xmlparse.c: Protect against accidental use of low quality entropy (issue #43)
Sebastian Pipping [Wed, 12 Jul 2017 15:47:55 +0000 (17:47 +0200)]
xmlparse.c: Move includes up (to reduce chance of macro interference)
Commit
6ee259bc84550061979c11a57892a4294a78155a is related.
Sebastian Pipping [Wed, 12 Jul 2017 14:23:03 +0000 (16:23 +0200)]
Changes: Communicate security aspects in detail (#60)
Rhodri James [Mon, 3 Jul 2017 16:47:00 +0000 (17:47 +0100)]
Fix protocolEncodingName. (pull request #70)
Ensure that protocolEncodingName is always either NULL or points
to the correct encoding for the parser, even if the parser is
reset.
Sebastian Pipping [Sun, 9 Jul 2017 20:41:18 +0000 (22:41 +0200)]
Merge branch 'cmake-fixes-from-vtk' (pull request #72)
Sebastian Pipping [Sun, 9 Jul 2017 20:39:49 +0000 (22:39 +0200)]
Changes: Mention CMake improvements
Ben Boeckel [Wed, 2 Nov 2016 12:11:07 +0000 (08:11 -0400)]
cmake: use the current binary directory
This is not necessarily the top-level CMake directory (such as when
expat is included inside of another project's source tree directly), so
we should instead use the one relative to this `CMakeLists.txt` file.
Ben Boeckel [Wed, 26 Oct 2016 17:55:48 +0000 (13:55 -0400)]
ConfigureChecks: configure into the build tree
This helps to keep the source tree cleaner.
Ben Boeckel [Wed, 26 Oct 2016 17:55:47 +0000 (13:55 -0400)]
cmake: include the current directory's ConfigureChecks.cmake
The file we want is always in the same directory. The
`ConfigureChecks.cmake` file is included in many projects and the wrong
`CMAKE_MODULE_PATH` can cause the wrong one to be used here.
Ben Boeckel [Wed, 26 Oct 2016 17:55:47 +0000 (13:55 -0400)]
cmake: remove executable bits from cmake files
These files are not executable and should not be stored as such inside
of the repository.
Sebastian Pipping [Wed, 5 Jul 2017 12:00:55 +0000 (14:00 +0200)]
siphash.h: Ensure <=80 line length
Sebastian Pipping [Wed, 5 Jul 2017 12:06:37 +0000 (14:06 +0200)]
siphash.h: Add const qualifiers
Sebastian Pipping [Sat, 1 Jul 2017 15:30:19 +0000 (17:30 +0200)]
Changes: Add MOX reference
Sebastian Pipping [Sat, 1 Jul 2017 15:26:11 +0000 (17:26 +0200)]
Merge branch 'xmlts-local-cache' (pull request #67)
Rhodri James [Tue, 27 Jun 2017 15:15:55 +0000 (16:15 +0100)]
Add means to avoid downloading xmlts.zip in coverage tests
Modifies target tests/xmlts.zip so that if the environment variable
XMLTS_DIR is set, the xmlts.zip will be copied from there rather
than downloaded again from xml.org. I currently need this
because I have a very limited internet connection.
Sebastian Pipping [Sat, 1 Jul 2017 12:52:24 +0000 (14:52 +0200)]
xmlparse.c: Move includes up to fix macro interference
Guilty is our macro "buffer" resolving to "parser->m_buffer".
Issue #59 is related.
Sebastian Pipping [Sat, 1 Jul 2017 12:41:52 +0000 (14:41 +0200)]
Changes: Mention parameter validation bug