]> granicus.if.org Git - libexpat/log
libexpat
7 years agoTest handling of CDATA in an external entity parser
Rhodri James [Thu, 23 Feb 2017 16:57:12 +0000 (16:57 +0000)]
Test handling of CDATA in an external entity parser

7 years agoTest reallocation of URI in re-used binding with dodgy reallocator
Rhodri James [Thu, 23 Feb 2017 16:04:12 +0000 (16:04 +0000)]
Test reallocation of URI in re-used binding with dodgy reallocator

7 years agoTest w3.org xmlns URL is correctly rejected
Rhodri James [Thu, 23 Feb 2017 15:22:40 +0000 (15:22 +0000)]
Test w3.org xmlns URL is correctly rejected

7 years agoTest rejection of invalid attribute 'xml' and use of w3.org
Rhodri James [Thu, 23 Feb 2017 15:13:12 +0000 (15:13 +0000)]
Test rejection of invalid attribute 'xml' and use of w3.org

7 years agoTest for correct rejection of 'xmlns' as an attribute
Rhodri James [Thu, 23 Feb 2017 13:31:59 +0000 (13:31 +0000)]
Test for correct rejection of 'xmlns' as an attribute

7 years agoTest extension of URI buffer shared between element tags
Rhodri James [Wed, 22 Feb 2017 18:41:31 +0000 (18:41 +0000)]
Test extension of URI buffer shared between element tags

7 years agoTest medium-length element name with namespaces and a failing allocator
Rhodri James [Wed, 22 Feb 2017 17:49:11 +0000 (17:49 +0000)]
Test medium-length element name with namespaces and a failing allocator

7 years agoTest mixed prefixed and unprefixed attributes in a namespace
Rhodri James [Wed, 22 Feb 2017 16:54:35 +0000 (16:54 +0000)]
Test mixed prefixed and unprefixed attributes in a namespace

7 years agoTest allocator handling of attribute with long namespace
Rhodri James [Wed, 22 Feb 2017 16:24:18 +0000 (16:24 +0000)]
Test allocator handling of attribute with long namespace

7 years agoruntests.c: Fix memleaks
Sebastian Pipping [Sun, 16 Jul 2017 16:58:21 +0000 (18:58 +0200)]
runtests.c: Fix memleaks

7 years agoTest attribute table hash collision handling
Rhodri James [Wed, 22 Feb 2017 15:14:50 +0000 (15:14 +0000)]
Test attribute table hash collision handling

7 years agoTest long attribute names in a namespace with failing allocator
Rhodri James [Tue, 21 Feb 2017 19:36:07 +0000 (19:36 +0000)]
Test long attribute names in a namespace with failing allocator

7 years agoExtend test coverage of external entity handler parameters
Rhodri James [Tue, 21 Feb 2017 18:25:41 +0000 (18:25 +0000)]
Extend test coverage of external entity handler parameters

7 years agoComment change: explain why attribute count is twice what you expect
Rhodri James [Tue, 21 Feb 2017 17:24:39 +0000 (17:24 +0000)]
Comment change: explain why attribute count is twice what you expect

7 years agoCheck NULLing the encoding works before the parse is started
Rhodri James [Tue, 21 Feb 2017 16:33:01 +0000 (16:33 +0000)]
Check NULLing the encoding works before the parse is started

7 years agoTest for specific error from XML_UseForeignDTD()
Rhodri James [Tue, 21 Feb 2017 16:26:58 +0000 (16:26 +0000)]
Test for specific error from XML_UseForeignDTD()

7 years agoFix structure initialisation not to cause warnings
Rhodri James [Tue, 21 Feb 2017 15:29:31 +0000 (15:29 +0000)]
Fix structure initialisation not to cause warnings

7 years agoAdd test case for long URIs in attributes with failing allocator
Rhodri James [Fri, 17 Feb 2017 18:58:08 +0000 (18:58 +0000)]
Add test case for long URIs in attributes with failing allocator

7 years agoRestore original nsAttsSize if reallocation fails
Rhodri James [Fri, 17 Feb 2017 16:32:21 +0000 (16:32 +0000)]
Restore original nsAttsSize if reallocation fails

7 years agoTest reallocation failure in xmlns attribute handling
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()

7 years agoTest rejection of unbound prefix, improve coverage of attribute handling
Rhodri James [Fri, 17 Feb 2017 15:18:34 +0000 (15:18 +0000)]
Test rejection of unbound prefix, improve coverage of attribute handling

7 years agoRevert recorded size of attribute memory when reallocation fails
Rhodri James [Fri, 17 Feb 2017 12:01:30 +0000 (12:01 +0000)]
Revert recorded size of attribute memory when reallocation fails

7 years agoTest long namespace names (1024 characters)
Rhodri James [Thu, 16 Feb 2017 17:44:53 +0000 (17:44 +0000)]
Test long namespace names (1024 characters)

7 years agoRefactor namespace allocation tests
Rhodri James [Thu, 16 Feb 2017 16:09:28 +0000 (16:09 +0000)]
Refactor namespace allocation tests

7 years agoExtend code path coverage of entity handling
Rhodri James [Tue, 14 Feb 2017 11:50:40 +0000 (11:50 +0000)]
Extend code path coverage of entity handling

7 years agoAdd test coverage for comments with a failing allocator
Rhodri James [Wed, 15 Feb 2017 19:11:19 +0000 (19:11 +0000)]
Add test coverage for comments with a failing allocator

7 years agoMore coverage of PIs with failing allocator
Rhodri James [Wed, 15 Feb 2017 18:49:24 +0000 (18:49 +0000)]
More coverage of PIs with failing allocator

7 years agoTest parsing a PI with a failing allocator
Rhodri James [Wed, 15 Feb 2017 18:17:25 +0000 (18:17 +0000)]
Test parsing a PI with a failing allocator

7 years agoExpand really long line test for encoded CDATA handling
Rhodri James [Wed, 15 Feb 2017 17:24:06 +0000 (17:24 +0000)]
Expand really long line test for encoded CDATA handling

7 years agoTest right square bracket handling in external entity parses
Rhodri James [Wed, 15 Feb 2017 15:48:00 +0000 (15:48 +0000)]
Test right square bracket handling in external entity parses

7 years agoMore tests for the right square bracket control paths
Rhodri James [Wed, 15 Feb 2017 15:02:45 +0000 (15:02 +0000)]
More tests for the right square bracket control paths

7 years agoTest handling of right square bracket at end of content data
Rhodri James [Wed, 15 Feb 2017 13:50:04 +0000 (13:50 +0000)]
Test handling of right square bracket at end of content data

7 years agoExtend ASCII CDATA test to cover a default handler
Rhodri James [Tue, 14 Feb 2017 18:22:53 +0000 (18:22 +0000)]
Extend ASCII CDATA test to cover a default handler

7 years agoAdd CDATA section handlers for increased test coverage
Rhodri James [Tue, 14 Feb 2017 17:57:58 +0000 (17:57 +0000)]
Add CDATA section handlers for increased test coverage

7 years agoAdd default handler to namespace failing allocation test
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

7 years agoAdd default handlers to character entity tests to extend coverage
Rhodri James [Tue, 14 Feb 2017 16:40:55 +0000 (16:40 +0000)]
Add default handlers to character entity tests to extend coverage

7 years agoExtend coverage of namespace start and end handlers
Rhodri James [Tue, 14 Feb 2017 16:26:27 +0000 (16:26 +0000)]
Extend coverage of namespace start and end handlers

7 years agoTest external entity with no handler
Rhodri James [Tue, 14 Feb 2017 16:13:06 +0000 (16:13 +0000)]
Test external entity with no handler

7 years agoTweak tests for greater allocation failure coverage
Rhodri James [Tue, 14 Feb 2017 16:04:56 +0000 (16:04 +0000)]
Tweak tests for greater allocation failure coverage

7 years agoMore external entity allocation failure coverage
Rhodri James [Tue, 14 Feb 2017 15:31:31 +0000 (15:31 +0000)]
More external entity allocation failure coverage

7 years agoExtend coverage of partial character parsing
Rhodri James [Mon, 13 Feb 2017 18:05:54 +0000 (18:05 +0000)]
Extend coverage of partial character parsing

7 years agoTest trailing CR in external entity parse
Rhodri James [Mon, 13 Feb 2017 17:59:47 +0000 (17:59 +0000)]
Test trailing CR in external entity parse

7 years agoTest handling of trailing CR (rather than newline)
Rhodri James [Fri, 10 Feb 2017 18:17:01 +0000 (18:17 +0000)]
Test handling of trailing CR (rather than newline)

7 years agoMerge branch 'coverage-review'
Sebastian Pipping [Sun, 16 Jul 2017 16:33:07 +0000 (18:33 +0200)]
Merge branch 'coverage-review'

7 years agoruntests.c: Fix memleaks
Sebastian Pipping [Sun, 16 Jul 2017 16:27:00 +0000 (18:27 +0200)]
runtests.c: Fix memleaks

7 years agoExtend test coverage of external entity suspension
Rhodri James [Fri, 10 Feb 2017 12:52:55 +0000 (12:52 +0000)]
Extend test coverage of external entity suspension

7 years agoTest suspending from an external entity's XML declaration handler
Rhodri James [Thu, 9 Feb 2017 16:55:35 +0000 (16:55 +0000)]
Test suspending from an external entity's XML declaration handler

7 years agoMerge branch 'coverage-review'
Sebastian Pipping [Sun, 16 Jul 2017 00:11:54 +0000 (02:11 +0200)]
Merge branch 'coverage-review'

7 years agoruntests.c: Fix memory leaks
Sebastian Pipping [Sun, 16 Jul 2017 00:09:23 +0000 (02:09 +0200)]
runtests.c: Fix memory leaks

7 years agoruntests.c: Polish test_ext_entity_invalid_parse
Sebastian Pipping [Sun, 16 Jul 2017 00:06:29 +0000 (02:06 +0200)]
runtests.c: Polish test_ext_entity_invalid_parse

7 years agoRefactor and extend external entity parse error testing
Rhodri James [Thu, 9 Feb 2017 15:23:06 +0000 (15:23 +0000)]
Refactor and extend external entity parse error testing

7 years agoCheck parse errors in external entity parsers
Rhodri James [Thu, 9 Feb 2017 14:10:33 +0000 (14:10 +0000)]
Check parse errors in external entity parsers

7 years agoTest UTF-8 BOM is recognised in UTF-8 external entity
Rhodri James [Thu, 9 Feb 2017 12:52:08 +0000 (12:52 +0000)]
Test UTF-8 BOM is recognised in UTF-8 external entity

7 years agoTest unknown encoding in external entity parser (increase coverage)
Rhodri James [Thu, 9 Feb 2017 12:08:03 +0000 (12:08 +0000)]
Test unknown encoding in external entity parser (increase coverage)

7 years agoCheck handling of long element names with namespaces
Rhodri James [Wed, 8 Feb 2017 18:28:39 +0000 (18:28 +0000)]
Check handling of long element names with namespaces

7 years agoRefactor allocator test support
Rhodri James [Wed, 8 Feb 2017 15:26:18 +0000 (15:26 +0000)]
Refactor allocator test support

7 years agoMerge branch 'travis-ci' (issue #23)
Sebastian Pipping [Sat, 15 Jul 2017 17:48:55 +0000 (19:48 +0200)]
Merge branch 'travis-ci' (issue #23)

7 years agoTravis CI: Ensure that Clang 4.0 is installed
Sebastian Pipping [Sat, 15 Jul 2017 17:42:18 +0000 (19:42 +0200)]
Travis CI: Ensure that Clang 4.0 is installed

7 years agoqa.sh: Use clang for mode "address" to detect memory leaks (#23)
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)

7 years agoqa.sh: Rename BASE_FLAGS to BASE_COMPILE_FLAGS
Sebastian Pipping [Sat, 15 Jul 2017 17:29:48 +0000 (19:29 +0200)]
qa.sh: Rename BASE_FLAGS to BASE_COMPILE_FLAGS

7 years agoMerge branch 'make-check-memory' (issue #23)
Sebastian Pipping [Sat, 15 Jul 2017 17:15:49 +0000 (19:15 +0200)]
Merge branch 'make-check-memory' (issue #23)

7 years agoChanges: Document test suite memleak fixes
Sebastian Pipping [Sat, 15 Jul 2017 17:12:29 +0000 (19:12 +0200)]
Changes: Document test suite memleak fixes

7 years agominicheck.c: Protect against potential NULL dereference
Sebastian Pipping [Sat, 15 Jul 2017 17:09:30 +0000 (19:09 +0200)]
minicheck.c: Protect against potential NULL dereference

7 years agominicheck.c: Rename *_dispose to *_free
Sebastian Pipping [Sat, 15 Jul 2017 17:07:30 +0000 (19:07 +0200)]
minicheck.c: Rename *_dispose to *_free

7 years agoFree the external entity parser in external_entity_loader_set_encoding()
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)

7 years agoFree all the data structures associated with test cases.
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)

7 years agoFree the content model in dummy_element_decl_handler()
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)

7 years agoFree external entity parser in external_entity_param()
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).

7 years agoFree external entity parser in external_entity_suspender()
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)

7 years agoFree external entity parser in external_entity_param_checker()
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)

7 years agoFree external entity parser in external_entity_resetter() when done
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)

7 years agoFree external entity parser in external_entity_loader() when done.
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)

7 years agoUse correct parser to signal failure in external_entity_loader()
Rhodri James [Fri, 14 Jul 2017 15:49:50 +0000 (16:49 +0100)]
Use correct parser to signal failure in external_entity_loader()

7 years agoxmlparse.c: Adjust _GNU_SOURCE define in favor of Python (#77) R_2_2_2
Sebastian Pipping [Wed, 12 Jul 2017 21:55:49 +0000 (23:55 +0200)]
xmlparse.c: Adjust _GNU_SOURCE define in favor of Python (#77)

7 years agoChanges: Improve 2.2.2 security notes
Sebastian Pipping [Wed, 12 Jul 2017 20:51:25 +0000 (22:51 +0200)]
Changes: Improve 2.2.2 security notes

7 years agoxmlparse.c: Avoid _GNU_SOURCE macro redefinition (#77)
Sebastian Pipping [Wed, 12 Jul 2017 19:09:39 +0000 (21:09 +0200)]
xmlparse.c: Avoid _GNU_SOURCE macro redefinition (#77)

7 years agoxmlparse.c: Address compile warning with -DNDEBUG (issue #76)
Sebastian Pipping [Wed, 12 Jul 2017 18:20:22 +0000 (20:20 +0200)]
xmlparse.c: Address compile warning with -DNDEBUG (issue #76)

7 years agoruntests.c: Protect against -DNDEBUG (issue #76 related)
Sebastian Pipping [Wed, 12 Jul 2017 18:15:18 +0000 (20:15 +0200)]
runtests.c: Protect against -DNDEBUG (issue #76 related)

7 years agoPrepare release version 2.2.2
Sebastian Pipping [Wed, 12 Jul 2017 16:58:20 +0000 (18:58 +0200)]
Prepare release version 2.2.2

7 years agoBump version info from 7:3:6 to 7:4:6
Sebastian Pipping [Wed, 12 Jul 2017 16:59:39 +0000 (18:59 +0200)]
Bump version info from 7:3:6 to 7:4:6

7 years agoMove to C99 (#73) and fix ULL integer literals (#69)
Sebastian Pipping [Wed, 5 Jul 2017 20:49:51 +0000 (22:49 +0200)]
Move to C99 (#73) and fix ULL integer literals (#69)

7 years agoTravis CI: Use -DXML_POOR_ENTROPY to fix compilation
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

7 years agoChanges: Document low quality entropy detection (related to #43)
Sebastian Pipping [Wed, 12 Jul 2017 16:06:21 +0000 (18:06 +0200)]
Changes: Document low quality entropy detection (related to #43)

7 years agoxmlparse.c: Protect against accidental use of low quality entropy (issue #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)

7 years agoxmlparse.c: Move includes up (to reduce chance of macro interference)
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.

7 years agoChanges: Communicate security aspects in detail (#60)
Sebastian Pipping [Wed, 12 Jul 2017 14:23:03 +0000 (16:23 +0200)]
Changes: Communicate security aspects in detail (#60)

7 years agoFix protocolEncodingName. (pull request #70)
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.

7 years agoMerge branch 'cmake-fixes-from-vtk' (pull request #72)
Sebastian Pipping [Sun, 9 Jul 2017 20:41:18 +0000 (22:41 +0200)]
Merge branch 'cmake-fixes-from-vtk' (pull request #72)

7 years agoChanges: Mention CMake improvements
Sebastian Pipping [Sun, 9 Jul 2017 20:39:49 +0000 (22:39 +0200)]
Changes: Mention CMake improvements

7 years agocmake: use the current binary directory
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.

7 years agoConfigureChecks: configure into the build tree
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.

7 years agocmake: include the current directory's ConfigureChecks.cmake
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.

7 years agocmake: remove executable bits from cmake files
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.

7 years agosiphash.h: Ensure <=80 line length
Sebastian Pipping [Wed, 5 Jul 2017 12:00:55 +0000 (14:00 +0200)]
siphash.h: Ensure <=80 line length

7 years agosiphash.h: Add const qualifiers
Sebastian Pipping [Wed, 5 Jul 2017 12:06:37 +0000 (14:06 +0200)]
siphash.h: Add const qualifiers

7 years agoChanges: Add MOX reference
Sebastian Pipping [Sat, 1 Jul 2017 15:30:19 +0000 (17:30 +0200)]
Changes: Add MOX reference

7 years agoMerge branch 'xmlts-local-cache' (pull request #67)
Sebastian Pipping [Sat, 1 Jul 2017 15:26:11 +0000 (17:26 +0200)]
Merge branch 'xmlts-local-cache' (pull request #67)

7 years agoAdd means to avoid downloading xmlts.zip in coverage tests
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.

7 years agoxmlparse.c: Move includes up to fix macro interference
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.

7 years agoChanges: Mention parameter validation bug
Sebastian Pipping [Sat, 1 Jul 2017 12:41:52 +0000 (14:41 +0200)]
Changes: Mention parameter validation bug