Rhodri James
213c8523a3
Add CDATA section handlers for increased test coverage
2017-07-16 18:41:03 +02:00
Rhodri James
05fe0bd6c9
Add default handler to namespace failing allocation test
...
Increases code coverage. Also tweaked allocation counts for
better coverage
2017-07-16 18:40:52 +02:00
Rhodri James
e92f989efe
Add default handlers to character entity tests to extend coverage
2017-07-16 18:40:41 +02:00
Rhodri James
dabb530d17
Extend coverage of namespace start and end handlers
2017-07-16 18:40:33 +02:00
Rhodri James
41524fed85
Test external entity with no handler
2017-07-16 18:40:05 +02:00
Rhodri James
9a7d8d2c3f
Tweak tests for greater allocation failure coverage
2017-07-16 18:39:56 +02:00
Rhodri James
7653beecee
More external entity allocation failure coverage
2017-07-16 18:39:42 +02:00
Rhodri James
f71790ccf9
Extend coverage of partial character parsing
2017-07-16 18:37:31 +02:00
Rhodri James
6cfef69705
Test trailing CR in external entity parse
2017-07-16 18:37:17 +02:00
Rhodri James
15ef260f6b
Test handling of trailing CR (rather than newline)
2017-07-16 18:37:00 +02:00
Sebastian Pipping
5354505d4c
Merge branch 'coverage-review'
2017-07-16 18:33:07 +02:00
Sebastian Pipping
b24ecb9d46
runtests.c: Fix memleaks
2017-07-16 18:27:00 +02:00
Rhodri James
df0138ac3f
Extend test coverage of external entity suspension
2017-07-16 18:23:44 +02:00
Rhodri James
80394e1792
Test suspending from an external entity's XML declaration handler
2017-07-16 18:23:20 +02:00
Sebastian Pipping
ae39cb321f
Merge branch 'coverage-review'
2017-07-16 02:11:54 +02:00
Sebastian Pipping
5c07211b84
runtests.c: Fix memory leaks
2017-07-16 02:09:23 +02:00
Sebastian Pipping
738162b60c
runtests.c: Polish test_ext_entity_invalid_parse
2017-07-16 02:06:29 +02:00
Rhodri James
7b9b40bcee
Refactor and extend external entity parse error testing
2017-07-16 02:01:30 +02:00
Rhodri James
6381273b8b
Check parse errors in external entity parsers
2017-07-16 01:59:28 +02:00
Rhodri James
24e16ecbd8
Test UTF-8 BOM is recognised in UTF-8 external entity
2017-07-16 01:58:07 +02:00
Rhodri James
ab53e5da3f
Test unknown encoding in external entity parser (increase coverage)
2017-07-16 01:55:23 +02:00
Rhodri James
0f403d1d5d
Check handling of long element names with namespaces
2017-07-16 01:52:59 +02:00
Rhodri James
da93b3992a
Refactor allocator test support
2017-07-16 01:44:33 +02:00
Sebastian Pipping
9bacf1735f
Merge branch 'travis-ci' (issue #23 )
2017-07-15 19:48:55 +02:00
Sebastian Pipping
7e84c8cafc
Travis CI: Ensure that Clang 4.0 is installed
2017-07-15 19:48:47 +02:00
Sebastian Pipping
4f81bb01c1
qa.sh: Use clang for mode "address" to detect memory leaks ( #23 )
2017-07-15 19:48:47 +02:00
Sebastian Pipping
7bc4aa61ae
qa.sh: Rename BASE_FLAGS to BASE_COMPILE_FLAGS
2017-07-15 19:48:45 +02:00
Sebastian Pipping
cdd5b17ea7
Merge branch 'make-check-memory' (issue #23 )
2017-07-15 19:15:49 +02:00
Sebastian Pipping
86c00d7f64
Changes: Document test suite memleak fixes
2017-07-15 19:14:49 +02:00
Sebastian Pipping
483803255d
minicheck.c: Protect against potential NULL dereference
2017-07-15 19:14:49 +02:00
Sebastian Pipping
7c82b0b4ab
minicheck.c: Rename *_dispose to *_free
2017-07-15 19:07:30 +02:00
Rhodri James
c5b129e597
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 )
2017-07-14 17:55:51 +01:00
Rhodri James
e4bfe3c7d1
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 )
2017-07-14 17:53:56 +01:00
Rhodri James
38c1ce7cd5
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 )
2017-07-14 17:33:59 +01:00
Rhodri James
d350a6cb0d
Free external entity parser in external_entity_param()
...
Removes some of the memory leaks detected by AddressSanitizer in
the test suite (see Issue #23 ).
2017-07-14 17:22:54 +01:00
Rhodri James
8cdcb7219d
Free external entity parser in external_entity_suspender()
...
Removes some memory leaks detected by AddressSanitizer in
the test suite (see Issue #23 )
2017-07-14 17:15:12 +01:00
Rhodri James
448cd2acac
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 )
2017-07-14 17:13:22 +01:00
Rhodri James
a7db7a1c1a
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 )
2017-07-14 17:03:25 +01:00
Rhodri James
d3b3f7fa48
Free external entity parser in external_entity_loader() when done.
...
Removes some memory leaks detected by AddressSanitizer in the
test suite (see Issue #23 )
2017-07-14 17:02:34 +01:00
Rhodri James
18be28458b
Use correct parser to signal failure in external_entity_loader()
2017-07-14 16:49:50 +01:00
Sebastian Pipping
7c3eedb20b
xmlparse.c: Adjust _GNU_SOURCE define in favor of Python ( #77 )
2017-07-12 23:55:49 +02:00
Sebastian Pipping
c5daa8c0b1
Changes: Improve 2.2.2 security notes
2017-07-12 23:00:19 +02:00
Sebastian Pipping
f8bd51b5a3
xmlparse.c: Avoid _GNU_SOURCE macro redefinition ( #77 )
2017-07-12 21:09:39 +02:00
Sebastian Pipping
1ea1425d15
xmlparse.c: Address compile warning with -DNDEBUG (issue #76 )
2017-07-12 20:20:22 +02:00
Sebastian Pipping
b5aaa782fa
runtests.c: Protect against -DNDEBUG (issue #76 related)
2017-07-12 20:16:37 +02:00
Sebastian Pipping
e72c42eb18
Prepare release version 2.2.2
2017-07-12 19:00:02 +02:00
Sebastian Pipping
8c9ec41705
Bump version info from 7:3:6 to 7:4:6
2017-07-12 19:00:02 +02:00
Sebastian Pipping
5f51145401
Move to C99 ( #73 ) and fix ULL integer literals ( #69 )
2017-07-12 18:47:37 +02:00
Sebastian Pipping
21efd0f600
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
2017-07-12 18:34:52 +02:00
Sebastian Pipping
ba03edc6e6
Changes: Document low quality entropy detection (related to #43 )
2017-07-12 18:11:28 +02:00