]> granicus.if.org Git - libexpat/log
libexpat
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

7 years agoxmlparse.c: Fix parser NULL dereference
Sebastian Pipping [Sat, 1 Jul 2017 12:33:57 +0000 (14:33 +0200)]
xmlparse.c: Fix parser NULL dereference

errorCode is a macro resolving to parser->m_errorCode.
Issue #59 is related.

7 years agoMerge branch 'autoreconf-dash-fix' (pull request #68)
Sebastian Pipping [Sat, 1 Jul 2017 11:13:05 +0000 (13:13 +0200)]
Merge branch 'autoreconf-dash-fix' (pull request #68)

7 years agoChanges: Mention #68, give credit to Kerin Millar
Sebastian Pipping [Sat, 1 Jul 2017 11:12:29 +0000 (13:12 +0200)]
Changes: Mention #68, give credit to Kerin Millar

7 years agoconftools/get-version.sh: Fix unsafe expansions of $hdr
Kerin Millar [Thu, 29 Jun 2017 15:54:28 +0000 (16:54 +0100)]
conftools/get-version.sh: Fix unsafe expansions of $hdr

Also, use $() instead of ``. See http://mywiki.wooledge.org/BashFAQ/082.

7 years agoconftools/get-version.sh: Use printf rather than try to infer non-portable echo options
Kerin Millar [Thu, 29 Jun 2017 15:51:18 +0000 (16:51 +0100)]
conftools/get-version.sh: Use printf rather than try to infer non-portable echo options

7 years agoTravis CI: Install dos2unix (#66)
Sebastian Pipping [Wed, 28 Jun 2017 18:09:28 +0000 (20:09 +0200)]
Travis CI: Install dos2unix (#66)

7 years agoMerge branch 'make-run-xmltest-windows' (#66)
Sebastian Pipping [Wed, 28 Jun 2017 17:42:46 +0000 (19:42 +0200)]
Merge branch 'make-run-xmltest-windows' (#66)

7 years agoMakefile.in: Waterproof against differences in line endings
Sebastian Pipping [Wed, 28 Jun 2017 16:57:24 +0000 (18:57 +0200)]
Makefile.in: Waterproof against differences in line endings

For MinGW cross-compilation, second try.

7 years agoMerge branch 'mingw-crossdev-wine-linuxmint' (#64)
Sebastian Pipping [Wed, 28 Jun 2017 14:03:52 +0000 (16:03 +0200)]
Merge branch 'mingw-crossdev-wine-linuxmint' (#64)

7 years agoxmlwf/readfilemap.c: Address -Wsign-compare warning
Sebastian Pipping [Tue, 27 Jun 2017 21:23:03 +0000 (23:23 +0200)]
xmlwf/readfilemap.c: Address -Wsign-compare warning

read:
http://pubs.opengroup.org/onlinepubs/009695399/functions/read.html

7 years agocoverage.sh: Symlink libwinpthread-1.dll as well for Linux Mint
Sebastian Pipping [Tue, 27 Jun 2017 21:09:18 +0000 (23:09 +0200)]
coverage.sh: Symlink libwinpthread-1.dll as well for Linux Mint

7 years agotests: Address -Wformat compile warnings
Sebastian Pipping [Sun, 25 Jun 2017 22:31:29 +0000 (00:31 +0200)]
tests: Address -Wformat compile warnings

7 years agoChanges: Give credit to Viktor Szakats (#61)
Sebastian Pipping [Sun, 25 Jun 2017 18:15:28 +0000 (20:15 +0200)]
Changes: Give credit to Viktor Szakats (#61)

7 years agoLoadLibrary() call to work correctly regardless of _UNICODE setting
Viktor Szakats [Sun, 25 Jun 2017 17:42:17 +0000 (19:42 +0200)]
LoadLibrary() call to work correctly regardless of _UNICODE setting

This solution allows the build system to chose whichever mode, instead
of forcing the "ANSI" alternative of the API.

7 years agoChanges: Mention fix to #60
Sebastian Pipping [Sun, 25 Jun 2017 15:53:25 +0000 (17:53 +0200)]
Changes: Mention fix to #60

7 years agoFix building on win32 if _UNICODE is defined
Václav Slavík [Sun, 25 Jun 2017 15:38:11 +0000 (17:38 +0200)]
Fix building on win32 if _UNICODE is defined

Explicitly use LoadLibraryA() instead of the LoadLibrary() macro, which
may expand to LoadLibraryW() depending on build configuration.

7 years agocoverage.sh: Fix two comment typos
Sebastian Pipping [Sat, 24 Jun 2017 14:11:09 +0000 (16:11 +0200)]
coverage.sh: Fix two comment typos

7 years agoMerge branch 'haypo-win64_warn' (pull request #58)
Sebastian Pipping [Fri, 23 Jun 2017 19:06:56 +0000 (21:06 +0200)]
Merge branch 'haypo-win64_warn' (pull request #58)

7 years agosiphash.h: Compress change log a bit
Sebastian Pipping [Fri, 23 Jun 2017 19:00:33 +0000 (21:00 +0200)]
siphash.h: Compress change log a bit

7 years agoChanges/siphash.h: Extend log, give credit to Victor Stinner
Sebastian Pipping [Fri, 23 Jun 2017 18:57:30 +0000 (20:57 +0200)]
Changes/siphash.h: Extend log, give credit to Victor Stinner

7 years agoFix compiler warnings on Windows 64-bit
Victor Stinner [Fri, 23 Jun 2017 08:39:26 +0000 (10:39 +0200)]
Fix compiler warnings on Windows 64-bit

Explicitly cast on integer downcasting to fix compiler warnings.

7 years agoMerge branch 'travis-matrix' (pull request #54)
Sebastian Pipping [Thu, 22 Jun 2017 18:38:04 +0000 (20:38 +0200)]
Merge branch 'travis-matrix' (pull request #54)

7 years agoTravis CI: No need to download upfront any more
Sebastian Pipping [Thu, 22 Jun 2017 18:31:21 +0000 (20:31 +0200)]
Travis CI: No need to download upfront any more

Since e9e329b4f44fdc76d854764c86ca99816a890e44