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
ba03edc6e6
Changes: Document low quality entropy detection (related to #43 )
2017-07-12 18:11:28 +02:00
Sebastian Pipping
ff0207e607
xmlparse.c: Protect against accidental use of low quality entropy (issue #43 )
2017-07-12 18:11:01 +02:00
Sebastian Pipping
939f5af58f
xmlparse.c: Move includes up (to reduce chance of macro interference)
...
Commit 6ee259bc84
is related.
2017-07-12 17:47:55 +02:00
Sebastian Pipping
a449035d04
Changes: Communicate security aspects in detail ( #60 )
2017-07-12 16:28:27 +02:00
Rhodri James
196bea60b1
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.
2017-07-10 22:10:49 +02:00
Sebastian Pipping
61e1a31fdc
Changes: Mention CMake improvements
2017-07-09 22:40:17 +02:00
Ben Boeckel
f01b2c0e27
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.
2017-07-05 17:13:57 -04:00
Ben Boeckel
c2888d56c0
ConfigureChecks: configure into the build tree
...
This helps to keep the source tree cleaner.
2017-07-05 17:12:38 -04:00
Ben Boeckel
ab89ae73c7
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.
2017-07-05 17:11:48 -04:00
Ben Boeckel
dc4422e894
cmake: remove executable bits from cmake files
...
These files are not executable and should not be stored as such inside
of the repository.
2017-07-05 17:11:30 -04:00
Sebastian Pipping
2994cfc3d9
siphash.h: Ensure <=80 line length
2017-07-05 14:07:10 +02:00
Sebastian Pipping
736d47c8ef
siphash.h: Add const qualifiers
2017-07-05 14:06:37 +02:00
Sebastian Pipping
44b8064042
Changes: Add MOX reference
2017-07-01 17:30:19 +02:00
Rhodri James
f196feb61f
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.
2017-07-01 17:21:24 +02:00
Sebastian Pipping
6ee259bc84
xmlparse.c: Move includes up to fix macro interference
...
Guilty is our macro "buffer" resolving to "parser->m_buffer".
Issue #59 is related.
2017-07-01 14:52:24 +02:00
Sebastian Pipping
b37622e679
Changes: Mention parameter validation bug
2017-07-01 14:43:25 +02:00
Sebastian Pipping
ac256dafdf
xmlparse.c: Fix parser NULL dereference
...
errorCode is a macro resolving to parser->m_errorCode.
Issue #59 is related.
2017-07-01 14:36:36 +02:00
Sebastian Pipping
00bd9dab99
Changes: Mention #68 , give credit to Kerin Millar
2017-07-01 13:12:29 +02:00
Kerin Millar
c14a173105
conftools/get-version.sh: Fix unsafe expansions of $hdr
...
Also, use $() instead of ``. See http://mywiki.wooledge.org/BashFAQ/082 .
2017-06-29 17:00:36 +01:00
Kerin Millar
9502963fd2
conftools/get-version.sh: Use printf rather than try to infer non-portable echo options
2017-06-29 16:59:59 +01:00
Sebastian Pipping
566d4bb019
Makefile.in: Waterproof against differences in line endings
...
For MinGW cross-compilation, second try.
2017-06-28 18:58:36 +02:00
Sebastian Pipping
58663de348
Merge branch 'mingw-crossdev-wine-linuxmint' ( #64 )
2017-06-28 16:03:52 +02:00
Sebastian Pipping
85bc1329dd
xmlwf/readfilemap.c: Address -Wsign-compare warning
...
read:
http://pubs.opengroup.org/onlinepubs/009695399/functions/read.html
2017-06-27 23:26:49 +02:00
Sebastian Pipping
552a79bc98
coverage.sh: Symlink libwinpthread-1.dll as well for Linux Mint
2017-06-27 23:09:18 +02:00
Sebastian Pipping
e4f71eeaa0
tests: Address -Wformat compile warnings
2017-06-26 00:31:29 +02:00
Sebastian Pipping
93baf8759b
Changes: Give credit to Viktor Szakats ( #61 )
2017-06-25 20:15:28 +02:00
Viktor Szakats
73a5a2e9c0
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.
2017-06-25 19:42:17 +02:00
Sebastian Pipping
23a533d19b
Changes: Mention fix to #60
2017-06-25 17:53:25 +02:00
Václav Slavík
95b95032f9
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.
2017-06-25 17:38:11 +02:00
Sebastian Pipping
6dc3273aa5
coverage.sh: Fix two comment typos
2017-06-24 16:11:09 +02:00
Sebastian Pipping
3932cc8df4
siphash.h: Compress change log a bit
2017-06-23 21:06:20 +02:00
Sebastian Pipping
a85511958a
Changes/siphash.h: Extend log, give credit to Victor Stinner
2017-06-23 21:06:20 +02:00
Victor Stinner
788bff7a3b
Fix compiler warnings on Windows 64-bit
...
Explicitly cast on integer downcasting to fix compiler warnings.
2017-06-23 10:40:05 +02:00
Sebastian Pipping
2d82462393
siphash.h: Fix duplicate/leftover line in the header ( #57 )
2017-06-22 20:26:53 +02:00
Sebastian Pipping
956147f81a
Changes: Mention getrandom detection issues on macOS ( #52 )
2017-06-19 20:37:34 +02:00
Sebastian Pipping
c74d380b8f
siphash.h: Address lack of stdint.h for Visual Studio 2003-2008
2017-06-18 22:03:01 +02:00
Sebastian Pipping
1ce8ec1c12
Changes: Start post-2.2.1 section
2017-06-18 21:53:55 +02:00
Sebastian Pipping
602e6c78ca
configure.ac: Fix mis-detection of getrandom on Debian GNU/kFreeBSD ( #50 )
...
There is no such thing but we need to link (not just compile) to realize.
2017-06-18 18:56:03 +02:00