Commit Graph

2840 Commits

Author SHA1 Message Date
tbeu
a86a16e2c5 Detect unsupported VS at configure time (and not at compile time) 2020-12-27 19:22:15 +01:00
Tim Gates
81e07895c2
docs: fix simple typo, wtihout -> without
There is a small typo in expat/tests/runtests.c.

Should read `without` rather than `wtihout`.
2020-12-17 21:14:40 +11:00
Sebastian Pipping
46698550ea Changes: Document #382 and #428 2020-10-30 10:10:53 +01:00
Sebastian Pipping
1e243aca3e tests: Show failure location for normal mode output as well 2020-10-25 21:14:18 +01:00
Sebastian Pipping
263c76e324 tests: Make argument -v more useful 2020-10-25 21:14:18 +01:00
Sebastian Pipping
6a7264e383 tests: Report actual failure location 2020-10-25 21:14:09 +01:00
Sebastian Pipping
bd4b55a680 tests: Make check for silence explain itself better 2020-10-25 18:40:38 +01:00
Sebastian Pipping
ea60ef34a7 Drop remaining support for Visual Studio 2008, 2010, 2012 (#422) 2020-10-03 21:30:13 +02:00
Sebastian Pipping
179a0c5526 CMake: Remove unused variable 2020-10-03 21:09:32 +02:00
Sebastian Pipping
c686d358b3 Set release date for 2.2.10 2020-10-03 00:49:39 +02:00
Sebastian Pipping
3265243064 Bump version info from 7:11:6 to 7:12:6 2020-10-03 00:49:39 +02:00
Sebastian Pipping
3af8f46e3f Bump version from 2.2.9 to 2.2.10 2020-10-03 00:49:33 +02:00
Sebastian Pipping
d0ad8e21ca Changes: Document #405 #356 #359 #394 #366 #412 #368 #369 2020-10-03 00:43:37 +02:00
Sebastian Pipping
5644f0fa8e CMake: Turn endif(..) into endif(), and else(..) into else()
Related documentation:
https://gitlab.kitware.com/cmake/community/-/wikis/FAQ#isnt-the-expression-in-the-elseexpression-confusing
2020-10-03 00:43:37 +02:00
Sebastian Pipping
cdeadf8522 tests: Add missing static to address compiler warning
Warning was:
runtests.c:112:1: warning: no previous prototype for ‘tcase_add_test__ifdef_xml_dtd’ [-Wmissing-prototypes]
2020-10-03 00:43:37 +02:00
Sebastian Pipping
11796c2166 Changes: Document #424 2020-10-01 21:28:37 +02:00
Sebastian Pipping
559f90fed7 CMake: Support "make package" based on CPack
On Linux, this will create a file "expat-2.2.9-Linux.tar.gz"
with the following content:

$ tar tf expat-2.2.9-Linux.tar.gz | sort | grep -v '/$'
expat-2.2.9-Linux/bin/xmlwf
expat-2.2.9-Linux/include/expat_config.h
expat-2.2.9-Linux/include/expat_external.h
expat-2.2.9-Linux/include/expat.h
expat-2.2.9-Linux/lib64/cmake/expat-2.2.9/expat.cmake
expat-2.2.9-Linux/lib64/cmake/expat-2.2.9/expat-config.cmake
expat-2.2.9-Linux/lib64/cmake/expat-2.2.9/expat-config-version.cmake
expat-2.2.9-Linux/lib64/cmake/expat-2.2.9/expat-noconfig.cmake
expat-2.2.9-Linux/lib64/libexpat.so
expat-2.2.9-Linux/lib64/libexpat.so.1
expat-2.2.9-Linux/lib64/libexpat.so.1.6.11
expat-2.2.9-Linux/lib64/pkgconfig/expat.pc
expat-2.2.9-Linux/share/doc/expat/AUTHORS
expat-2.2.9-Linux/share/doc/expat/changelog
expat-2.2.9-Linux/share/man/man1/xmlwf.1
2020-10-01 21:23:00 +02:00
Sebastian Pipping
2e63ab0782 Merge branch 'gittiver-master' (#419) 2020-09-26 14:54:39 +02:00
Sebastian Pipping
373e974b11 Changes: Document #419 2020-09-26 14:52:44 +02:00
Sebastian Pipping
639e28fc2e qa.sh: Enable LeakSanitizer 2020-09-25 20:18:33 +02:00
Gulliver
20f824e8e8 added "new" behaviour for Policy CMP0077 which allows to control the build options by variables if lib is used by FetchContent of a super project 2020-09-18 18:59:38 +02:00
Sebastian Pipping
d8daead33e installer: Add missing file to fix build from installed sources (#409) 2020-09-10 20:01:04 +02:00
Sebastian Pipping
1bb22cd03a
Merge pull request #414 from libexpat/issue-413-allow-installation-of-pkgconfig-file-with-msvc
CMake: Introduce option EXPAT_BUILD_PKGCONFIG (fixes #413)
2020-08-21 22:52:19 +02:00
Sebastian Pipping
86283117f1 readme: Sync list of CMake options 2020-08-20 22:02:30 +02:00
Sebastian Pipping
f438563a78 CMake: Introduce option EXPAT_BUILD_PKGCONFIG (#413) 2020-08-20 21:59:18 +02:00
Boris Kolpackov
81ae3e7208 Get rid of unsigned integer overflow in column calculation
While unsigned integer overflow is well-defined, Android sanitizers treat it
as an error. We also have some in the SipHash implementation but those won't
be easy to get rid of.
2020-08-17 16:08:56 +02:00
Sebastian Pipping
990e3d07ea
Merge pull request #411 from libexpat/cmake-linker-flags
CMake: Consider use of CMAKE_{EXE,MODULE,SHARED}_LINKER_FLAGS
2020-07-17 23:58:05 +02:00
Sebastian Pipping
e94b0b243e CMake: Consider use of CMAKE_{EXE,MODULE,SHARED}_LINKER_FLAGS 2020-07-16 23:46:26 +02:00
Sebastian Pipping
fc0e2365c9 Be more correct about const correctness on the inside 2020-07-16 21:09:00 +02:00
Sebastian Pipping
72227166b9 Changes: Document #408 2020-07-15 17:36:31 +02:00
Sebastian Pipping
da7cda3a85 CMake: Get expat target name back to constant "expat" 2020-07-10 19:33:34 +02:00
Sebastian Pipping
308d470e00 Changes: Document #406 2020-06-22 19:58:33 +02:00
Kleber Tarcísio
12a7276f3e xmlwf: Checks value after calling malloc 2020-06-22 19:56:34 +02:00
Sebastian Pipping
13bb381d29 xmlparse.c: Fix reading uninitialized variable (#404) 2020-05-28 01:57:06 +02:00
Sebastian Pipping
867bb34373 Merge branch 'notroj-xmlwf-doc-exitcode' (#403) 2020-05-13 14:42:18 +02:00
Sebastian Pipping
49ef210fc8 Changes: Document #403 2020-05-13 14:40:29 +02:00
Joe Orton
f1634dbaea Update xmlwf to exit with 3 if an output file could not be opened.
Update xmlwf exit code docs per review.
2020-05-13 08:36:56 +01:00
Joe Orton
38cfc7165f Document the exit codes for xmlwf. 2020-05-12 09:28:40 +01:00
Sebastian Pipping
f2172ff9bf Changes: Document #398 2020-04-20 15:21:25 +02:00
Ben Wagner
49c165c5a8 Don't add to NULL in iterator.
In C it is undefined to add anything to NULL. Clang recently began
taking advantage of this and can assume that if anything is added or
subtracted from a pointer that the pointer can be assumed non-NULL. The
Address Sanitizer has been updated to report when this happens at
runtime and produces messages like

expat/lib/xmlparse.c:6509:23: runtime error: applying zero offset to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior expat/lib/xmlparse.c:6509:23

This can be mitigated with 'p ? p + n : NULL' which optimizes to just
the add in all optimizing compilers, but avoids the undefined behavior.
2020-04-07 13:12:18 -04:00
Sebastian Pipping
c0bfb97ddd
Merge pull request #392 from libexpat/issue-387-use-werror-during-flag-support-detection
conftools: Use -Werror when checking compile flags
2020-03-20 16:39:56 +01:00
Sebastian Pipping
8829f5c3fd conftools: Fix regression with detection of -Wstrict-prototypes
The issue was that the code generated by AC_LANG_PROGRAM
produces warnings, and hence -Werror makes detection fail:

$ gcc -x c -Werror -Wstrict-prototypes - <<<'int main() {}'; echo $?
<stdin>:1:5: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
cc1: all warnings being treated as errors
1
2020-03-20 05:35:57 +01:00
Sebastian Pipping
21381bf35e conftools: Use -Werror when checking compile flags 2020-03-20 05:35:57 +01:00
Sebastian Pipping
ef09dbabd4 xmlparse.c: Fix undefined behavior for XML_UNICODE
Pointer arithmetic with NULL is undefined behavior.
This reverts c71f27573b
2020-03-20 05:31:40 +01:00
Sebastian Pipping
90ed5777a6 Drop support for Visual Studio <=8.0/2005, officially 2020-03-20 02:44:35 +01:00
Sebastian Pipping
ddeedc6be1 configure.ac: Fix whitespace regression
One blank line more than intended.
Introduced by mistake in commit 06819ba3e9
2020-03-18 22:26:47 +01:00
Joe Orton
06819ba3e9 Use AC_MSG_NOTICE so e.g. "configure --silent" is still silent. 2020-03-18 10:56:10 +00:00
Sebastian Pipping
2db13ca57d xmlwf: Add missing @AM_*FLAGS@ 2020-03-18 00:32:06 +01:00
Sebastian Pipping
5d1a7b3737 Changes: Document improved handling of compile flags 2020-03-17 21:25:23 +01:00
Sebastian Pipping
b391d182b0 configure.ac: Fix mis-treatment of AM_* as macros in heredoc
Warnings were:
configure.ac:336: warning: macro 'AM_CPPFLAGS' not found in library
configure.ac:337: warning: macro 'AM_CFLAGS' not found in library
configure.ac:338: warning: macro 'AM_CXXFLAGS' not found in library
configure.ac:339: warning: macro 'AM_LDFLAGS' not found in library
2020-03-17 21:10:52 +01:00