Rhodri James
e6dbd40799
Test nested external parser handling
2017-07-22 21:27:02 +02:00
Rhodri James
71c4f59886
Test unknown encoding handling in external parameter entity handler
2017-07-22 21:25:54 +02:00
Rhodri James
1fbdc13dcb
Test a bad encoding is rejected at initialisation time
2017-07-22 21:25:49 +02:00
Rhodri James
ac40d1ed35
Test declaring a UTF-16 encoding while actually in UTF-8 is rejected
2017-07-22 21:25:44 +02:00
Rhodri James
80a32d09de
Test XML declaration with long encoding name and failing allocator
2017-07-22 21:25:39 +02:00
Rhodri James
50ce682021
Test XML declaration handling with a duff allocator
2017-07-22 21:25:34 +02:00
Rhodri James
5279d9c588
Test external entity parsing suppressed with UNLESS_STANDALONE parameter
2017-07-22 21:25:29 +02:00
Rhodri James
e8ae6734bc
Test partial UTF-8 characters in IGNORE section
2017-07-22 21:25:24 +02:00
Rhodri James
9948d7cdfc
Refactor to reduce proliferation of external entity handlers
2017-07-22 21:18:57 +02:00
Sebastian Pipping
f324064d93
Merge branch 'realloc-dangling-pointer' (pull request #85 )
2017-07-20 22:18:59 +02:00
Sebastian Pipping
aa82b779bd
Changes: Document dangling pointer fix
2017-07-20 22:17:52 +02:00
Sebastian Pipping
786d7abfcd
xmlparse.c: Fix dangling pointer caused by use of realloc
...
Variables pool->ptr and pool->start point to addresses
that may have been freed if realloc chose the path of
a new base address. So we do the math on these pointers
while they are not dangling, yet.
For a related article:
http://trust-in-soft.com/dangling-pointer-indeterminate/
2017-07-20 22:16:09 +02:00
Sebastian Pipping
f48b24b454
Merge branch 'dll-hijacking' (pull request #83 )
2017-07-19 20:24:52 +02:00
Sebastian Pipping
99fb4b57f8
xmlparse.c: Fix DLL hijacking vulnerability ( #82 )
2017-07-19 20:19:37 +02:00
Sebastian Pipping
c5897e8c14
xmlparse.c: Fix comment typo
2017-07-19 20:19:07 +02:00
Sebastian Pipping
391fd85fb5
Merge branch 'arc4random-osx-pre-10-7' (pull request #84 )
2017-07-19 15:44:52 +02:00
Sebastian Pipping
8c62e0aad1
Support arc4random for pre-10.7/Lion macOS
2017-07-19 15:39:33 +02:00
Sebastian Pipping
947879849f
Rely on HAVE_ARC4RANDOM_BUF for CloudABI
2017-07-19 15:36:48 +02:00
Sebastian Pipping
5f1f1f1d98
Merge branch 'coverage'
2017-07-16 23:07:23 +02:00
Sebastian Pipping
fc6a6c2e80
runtests.c: Fix indentation
2017-07-16 23:07:03 +02:00
Rhodri James
d164cd59f9
Change all URLs to use example.org
2017-07-16 23:07:03 +02:00
Rhodri James
eb3b5c3fc0
Use meaningful constants for return values from handlers
2017-07-16 23:07:03 +02:00
Rhodri James
c1a29e9ad6
Tweak attribute list to improve test coverage
2017-07-16 23:07:02 +02:00
Rhodri James
d9fce70b6f
Test reallocation of attribute list with failing reallocator
2017-07-16 23:02:30 +02:00
Rhodri James
e24cf7a9cf
Tweak test_alloc_external_entity to improve code coverage
2017-07-16 23:02:30 +02:00
Rhodri James
0153af32fb
Extend skip handler test coverage
2017-07-16 23:02:30 +02:00
Rhodri James
ce81d26087
Test features are appropriately set
2017-07-16 23:02:30 +02:00
Rhodri James
2393c3fe26
Test predefined entities
2017-07-16 23:02:30 +02:00
Rhodri James
ec93648563
Make final reallocation test safe
2017-07-16 23:02:30 +02:00
Rhodri James
deeb8f2aae
Test robustness against failing reallocator for parsing long names
2017-07-16 23:02:30 +02:00
Rhodri James
fe4f238660
Refactor long test data string
2017-07-16 23:02:30 +02:00
Rhodri James
c87613c958
Extend XML_GetBuffer testing coverage
2017-07-16 23:02:30 +02:00
Rhodri James
991693f12b
Fix message in XML declaration handler
2017-07-16 23:02:30 +02:00
Rhodri James
a7884ded31
Restore groupSize if (re)allocation of groupConnector fails
2017-07-16 23:02:30 +02:00
Rhodri James
ab53439060
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.
2017-07-16 23:02:30 +02:00
Rhodri James
85ed69eaf9
Split combined triplet_count into two distinct flags
2017-07-16 23:02:30 +02:00
Sebastian Pipping
26175e6a44
Revert "Fix structure initialisation not to cause warnings"
...
This reverts commit 894033fab8
.
2017-07-16 23:02:30 +02:00
Sebastian Pipping
a649fa260d
Merge branch 'coverage'
2017-07-16 19:09:09 +02:00
Sebastian Pipping
317a023df2
runtests.c: Fix memleaks
2017-07-16 19:07:50 +02:00
Rhodri James
23e64e1fbc
Increase test coverage of ignore section processing
2017-07-16 19:05:03 +02:00
Rhodri James
6cacca3987
Refactor previous test to use existing test functions
2017-07-16 19:04:55 +02:00
Rhodri James
7a3664ab29
Test a broken IGNORE section is faulted
2017-07-16 19:04:44 +02:00
Rhodri James
da0bac99ad
Exercise conditional exclusion code
2017-07-16 19:04:13 +02:00
Rhodri James
7495f28469
Test suspending the parse in the middle of CDATA handling
2017-07-16 19:02:26 +02:00
Rhodri James
23c488c8fd
Test aborting parse while processing CDATA
2017-07-16 19:02:21 +02:00
Rhodri James
1a8297c54c
Test a variety of incomplete UTF-16 CDATA strings
2017-07-16 19:02:14 +02:00
Rhodri James
9ac26205bc
Test handling of UTF-16 supplementary plane characters
2017-07-16 19:01:54 +02:00
Rhodri James
e932825e22
Test long UTF-16 CDATA (more than internal buffer size)
2017-07-16 19:01:38 +02:00
Rhodri James
fa37a8069a
Test CDATA correctly runs through a default handler
...
In particular exercises a code path dealing with newlines
2017-07-16 19:01:20 +02:00
Rhodri James
b86bec407b
Test handling of CDATA in an external entity parser
2017-07-16 19:01:14 +02:00