Commit Graph

3050 Commits

Author SHA1 Message Date
Sebastian Pipping
87176c5ce3 expat.h: Fix conmment typo regarding XML_ERROR_UNKNOWN_ENCODING 2021-03-17 02:12:18 +01:00
Sebastian Pipping
1955a4092e Bump version infro from 7:12:6 to 8:0:7 2021-03-16 18:34:06 +01:00
Sebastian Pipping
734698ba6a Changes: Fix inconsistent double blank line 2021-03-16 18:27:32 +01:00
Sebastian Pipping
29b9c6010c Changes: Document #442 2021-03-16 18:15:24 +01:00
Alex Richardson
13d4c51a17 CMake: Only set CMAKE_CXX_FLAGS after enable_language(CXX)
Otherwise flags specified in a CMake cross-compilation toolchain (such as
CMAKE_CXX_FLAGS_INIT) will not be added. This could also affect native
builds but is much more likely to be noticed when cross-compiling due to
missing essential flags.
2021-03-16 15:57:05 +00:00
Sebastian Pipping
0e567d2ed1 fuzzers: Address Clang warning -Wunused-parameter 2021-03-10 16:21:00 +01:00
Sebastian Pipping
44d889e78c .travis.yml: Upgrade to Ubuntu Bionic 18.04.x LTS and Clang 11 2021-02-24 03:34:43 +01:00
Sebastian Pipping
af86899bf9 apply-clang-format.sh: Report on clang-format version 2021-02-24 03:34:43 +01:00
Sebastian Pipping
811c41e3be xmlparse.c: Reject missing call to XML_GetBuffer in XML_ParseBuffer
.. rather than running into undefined behavior.
2021-02-24 02:26:06 +01:00
Sebastian Pipping
88be19e487 configure.ac: Drop obsolescent macro AC_HEADER_STDC (#436) 2020-12-29 03:01:09 +01:00
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
Sebastian Pipping
b070491723 configure.ac: Use a heredoc for printing the summary 2020-03-17 20:39:41 +01:00
Jeffrey Walton
5c66485b86 Update Autotools to use AM_CPPFLAGS, AM_CFLAGS, and AM_CXXFLAGS 2020-03-17 20:35:20 +01:00
Sebastian Pipping
f7e69887b3 CMake: Expose man page compilation as target "xmlwf-manpage" 2020-03-16 22:30:21 +01:00
Sebastian Pipping
f1ac70b3e3 Merge branch 'Mizzrym1-move-xml-static-to-public' (#385) 2020-03-11 01:55:59 +01:00
Sebastian Pipping
4b71379a3e Changes: Document #385 2020-03-11 01:52:29 +01:00
Sebastian Pipping
5210036b1e CMake: Fix approach to set(.. PARENT_SCOPE)
Apparently, PARENT_SCOPE _only_ sets a variable in the parent scope
so we now first set it for Expat and do another exporting
call using PARENT_SCOPE if needed.

Error output of CMake 3.16.2 was:
CMake Error at libexpat/expat/CMakeLists.txt:319 (target_include_directories):
  Cannot specify include directories for target "INTERFACE" which is not
  built by this project.

CMake Error at libexpat/expat/CMakeLists.txt:368 (add_custom_command):
  add_custom_command Wrong syntax.  A TARGET or OUTPUT must be specified.
2020-03-09 16:14:13 +01:00
Maciej Sroczyński
b53473b119 Move definition XML_STATIC to public in target 2020-03-05 10:51:00 +01:00
Sebastian Pipping
65011ad2f7 CMake: Expose ${EXPAT_TARGET} to parent scope 2020-02-10 23:34:22 +01:00
Sebastian Pipping
b73d405848 Merge branch 'Mizzrym1-Fix_cmake_EXPORT' (#375, fixes #380) 2020-02-10 16:05:49 +01:00
Sebastian Pipping
74751abb6b Changes: Document #375 and #380 2020-02-10 16:04:29 +01:00
Maciej Sroczyński
6f44304d82 Fix cmake target_include_directories 2020-02-10 14:42:15 +01:00
Sebastian Pipping
8a989015ad README.md: Replace "should" by "can" regarding Windows binaries (#376) 2020-01-23 22:23:08 +01:00
Matthias
8a93b41a8a
Update COPYING
Copyright year should be 2019 for 2.2.9?
2019-12-26 00:22:56 +01:00
Bhargava Shastry
037bcd1657 CMake: Fix warning due to if statement with mismatching arguments 2019-11-29 13:29:45 +01:00
Sebastian Pipping
83e1688c74 xmlwf: Improve output of "xmlwf -h" by two tiny bits 2019-11-26 16:17:44 +01:00
Sebastian Pipping
49c31c180c
Merge pull request #369 from libexpat/issue-368-fix-doc-png-images
doc: Process *.png images by zopflipng (for #368)
2019-11-24 18:11:33 +01:00
Sebastian Pipping
3698d490a0 doc: Process *.png images by zopflipng 2019-11-24 15:29:20 +01:00
Bhargava Shastry
9d646413c4 CMake: Enable oss-fuzz integration 2019-11-19 11:31:59 +01:00
Bhargava Shastry
8889179071 parsebuffer fuzzer: Bail out on empty fuzzer input 2019-11-17 21:12:13 +01:00
luz.paz
56893d4fbb Fix source comment typos
Found via `codespell -q 3 -S ./testdata,./expat/Changes`
2019-11-04 07:52:31 -05:00
Sebastian Pipping
515f5d07c6 xmlparse.c: Improve warning regarding lack of high quality entropy (#172) 2019-10-26 15:23:09 +02:00
Sebastian Pipping
a328ba3ca6 Changes: Fix name order for 2.2.8 2019-10-16 15:25:34 +02:00
Sebastian Pipping
739a525d1b Changes: Give credit for #361 and #362 2019-10-16 15:23:14 +02:00
Mohammed Khajapasha
8935c83a84 Autotools: Add package name variable for expat.pc config file
Add _EXPAT_TARGET package name variable for expat.pc
package config file in automake.

Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha@intel.com>
2019-10-14 18:19:52 +00:00
Sebastian Pipping
87674af183
Merge pull request #359 from libexpat/rand-s-mingwrt-version-guard
Limit declaration of rand_s to mingwrt <5.3.0
2019-10-13 15:13:49 +02:00
Sebastian Pipping
fc32dd491c xmlparse.c: Limit declaration of rand_s to mingwrt <5.3.0 2019-10-13 13:06:05 +02:00
Sebastian Pipping
b65e0d383d Changes: Document improvements to CMake 2019-10-12 23:22:24 +02:00
Sebastian Pipping
c513cea787 CMake: Install shipped xmlwf manpage in case of -DEXPAT_BUILD_DOCS=OFF 2019-10-12 23:22:24 +02:00
Sebastian Pipping
f2d53fb6cd CMake: Catch troublesome build combinations for -DEXPAT_CHAR_TYPE=wchar_t 2019-10-12 23:22:24 +02:00
Sebastian Pipping
db01810bf3 CMake: Catch troublesome build combinations for -DEXPAT_CHAR_TYPE=ushort 2019-10-12 23:22:24 +02:00
Sebastian Pipping
5aa6475ca5 CMake: Create libexpatw.{dll,so} and expatw.pc with -DEXPAT_CHAR_TYPE=(ushort|wchar_t) 2019-10-12 23:22:24 +02:00
Sebastian Pipping
3e31626c7b CMake: Fix visibility of EXPAT_WITH_LIBBSD and EXPAT_*RANDOM* 2019-10-12 23:22:24 +02:00
Sebastian Pipping
a0ce01d3b0 Changes: Document #356 2019-10-12 23:20:52 +02:00
Sebastian Pipping
ccd1cbc14d Drop expat.spec RPM packaging (related to #330) 2019-10-09 19:56:19 +02:00
Sebastian Pipping
dd53eb8d10
Merge pull request #357 from libexpat/coverage-sh-cmake
Migrate coverage.sh from GNU Autotools to CMake (part of #330)
2019-10-09 15:21:08 +02:00
Sebastian Pipping
7426853889 codepage.c: Define functions codepageMap and codepageConvert no more than once 2019-10-08 00:20:28 +02:00
Sebastian Pipping
4d45e55178 coverage.sh: Limit coverage logs to lib/ and xmlwf/ folders 2019-10-08 00:20:28 +02:00
Sebastian Pipping
d516114e76 coverage.sh: Report more about calls to lcov (than their output) 2019-10-08 00:20:28 +02:00
Sebastian Pipping
3334d63437 coverage.sh: Fix directory collisions for w/ and w/o attribute info 2019-10-08 00:20:28 +02:00
Sebastian Pipping
ab73290c35 coverage.sh: Re-use first xmlts.zip download 2019-10-07 22:33:46 +02:00
Sebastian Pipping
6136acc8e0 coverage.sh: Move from GNU Autotools to CMake# 2019-10-07 22:33:35 +02:00
Sebastian Pipping
41c8dc1771 coverage.sh: Copy libexpat.dll as well 2019-10-07 22:33:35 +02:00
Sebastian Pipping
0b53cb461b coverage.sh: Improve handling of absent libwinpthread-1.dll 2019-10-07 22:33:35 +02:00
Vadim Zeitlin
52aead2583 Declare rand_s() for MinGW 32 ourselves
Runtime files for MinGW don't contain rand_s() declaration, even in
their latest version, so declare it ourselves to avoid the warning about
missing function declaration.
2019-10-06 22:12:25 +02:00
Sebastian Pipping
5123c8ed95 xmltok.c: Address warnings about accidental non-ASCII dashes in comments (#355) 2019-10-01 21:50:52 +02:00
Sebastian Pipping
c675d2d9da Changes: Document #354 2019-10-01 21:46:14 +02:00
Sebastian Pipping
8850b20417 qa.sh: Exclude "make run-xmltest" for -DEXPAT_DTD=OFF 2019-09-29 22:42:18 +02:00
Sebastian Pipping
ae87321020 runtests.c: Fix for -DEXPAT_DTD=OFF 2019-09-29 21:44:58 +02:00
Sebastian Pipping
3137798629 runtests.c: Fix for -DEXPAT_NS=OFF 2019-09-29 20:36:28 +02:00
Sebastian Pipping
76f2beee81 runtests.c: Fix compiler warning "unused function" with -DEXPAT_MIN_SIZE=ON 2019-09-29 19:34:39 +02:00
Sebastian Pipping
24a912c12c xmlparse.c|xmlrole.c: Fix compiler warning "unused parameter" with -DEXPAT_DTD=OFF 2019-09-29 19:34:39 +02:00
Sebastian Pipping
d05afa5829 xmlparse.c: Address compiler warninging with -DEXPAT_CONTEXT_BYTES=OFF
Warning was:
comparison of integers of different signs: 'int' and 'unsigned long'
2019-09-29 19:34:39 +02:00
Sebastian Pipping
b3d3ea6456 Changes: Fix spelling of "September" 2019-09-28 15:16:09 +02:00
Sebastian Pipping
a7bc26b697 Set release date for 2.2.9 2019-09-25 21:30:07 +02:00
Sebastian Pipping
89de2d561c Bump version info from 7:10:6 to 7:11:6 2019-09-25 21:26:10 +02:00
Sebastian Pipping
25c96511a0 Bump version from 2.2.8 to 2.2.9 2019-09-25 21:22:30 +02:00
Sebastian Pipping
fc79a3acdf Changes: Document #347 2019-09-25 21:18:59 +02:00
Sebastian Pipping
8c51dd9d51
Merge pull request #349 from libexpat/cmake-windows-libexpat-dll
CMake: Use libexpat*.(dll|lib) not expat*.(dll|lib) on Windows
2019-09-23 22:23:46 +02:00
Sebastian Pipping
de621b53cf CMake: Use libexpat*.(dll|lib) not expat*.(dll|lib) on Windows 2019-09-21 20:43:04 +02:00
bungeman
c6de942020
Only define _CRT_RAND_S when not already defined.
There exist builds which go out of their way to define _CRT_RAND_S for everything by forcing it into the list of macros defined on the command line to the compiler. Unfortunately, something like "-D_CRT_RAND_S" implies _CRT_RAND_S is defined to be '1' and defining it to be empty produces a redefinition.

Since the intention here is to ensure that _CRT_RAND_S is always defined, only define it if it isn't already defined.
2019-09-18 10:39:05 -04:00
Sebastian Pipping
6b19963341 Drop mistaken executable bits 2019-09-16 20:54:47 +02:00
tbeu
706f050615
Fix typo 2019-09-14 16:35:17 +02:00
Sebastian Pipping
91b17cfeb8 Set release date for 2.2.8 2019-09-13 22:03:21 +02:00
Sebastian Pipping
a5414b759d Bump version from 2.2.7 to 2.2.8 2019-09-13 22:03:21 +02:00
Sebastian Pipping
8fd183abfe Bump version info from 7:9:6 to 7:10:6 2019-09-13 21:44:39 +02:00
Sebastian Pipping
9f89db5317 Changes: Document #312 and #343 2019-09-13 21:17:02 +02:00
Mohammed Khajapasha
df35daf126 Autotools: Enable clang tool chain to generate libraries
Enable clang tool chain for autotool to generate shared libexpat libraries.

Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha@intel.com>
2019-09-13 06:00:38 +00:00
Sebastian Pipping
68ec895e5d Changes: Re-order entries for upcoming a release 2019-09-08 20:05:04 +02:00
Sebastian Pipping
966f5d0da8 xmltest.sh: Adapt to fixed xmlwf exit code 2019-09-06 19:53:36 +02:00
Sebastian Pipping
70a4a691fc xmlwf: Fix exit code for case without "-d DIRECTORY" 2019-09-06 19:53:36 +02:00
Sebastian Pipping
11a621be71
Merge pull request #340 from libexpat/issue-332-workaround-xml-min-size-with-asan
runtests.c: Workaround issue with combining XML_MIN_SIZE and ASan (#332)
2019-09-06 01:16:30 +02:00
Sebastian Pipping
45bf95686c Changes: Add reference to #336 2019-09-05 21:58:50 +02:00
Sebastian Pipping
f2a977c5da
Merge pull request #336 from libexpat/cmake-option-char-type
CMake option EXPAT_CHAR_TYPE=(char|ushort|wchar_t) + two other small CMake fixes
2019-09-05 21:56:40 +02:00
Sebastian Pipping
48d4929bff runtests.c: Workaround issue with combining XML_MIN_SIZE and ASan (#332) 2019-09-05 19:56:11 +02:00
Sebastian Pipping
d2892df8fd .gitignore: Add missing build results (CMake, qa.sh) 2019-09-05 19:38:36 +02:00
Sebastian Pipping
7f75b2e55f CMake: Streamline expat-config.cmake.in a bit 2019-09-05 17:21:57 +02:00
Sebastian Pipping
93431f0a8e CMake: Re-model char type components for usability 2019-09-05 17:20:06 +02:00
Sebastian Pipping
5a0df05f53 CMake: Fix guard for EXPAT_MSVC_STATIC_CRT from WIN32 to MSVC 2019-09-05 17:20:06 +02:00
Sebastian Pipping
23d85f447b CMake: Set XML_UNICODE for XML_UNICODE_WCHAR_T as well, again 2019-09-05 17:20:06 +02:00
Sebastian Pipping
27ec307136 CMake: Introduce option EXPAT_CHAR_TYPE=(char|ushort|wchar_t) 2019-09-05 17:20:06 +02:00
Sebastian Pipping
4a09fc9024 xmlwf: Get -h and -v out of usage summary line 2019-09-05 16:38:41 +02:00
Sebastian Pipping
5f28bccc5b Changes: Add reference to #338 2019-09-05 16:35:48 +02:00
Sebastian Pipping
fae03ea47c Changes: Document #339 2019-09-05 16:34:20 +02:00
Sebastian Pipping
18637ba9c8
Merge pull request #339 from bettermanzzy/fixMemLeak
Fix a potential memory leak in elements.c
2019-09-05 16:16:54 +02:00
Sebastian Pipping
b52c38a90f
Merge pull request #338 from libexpat/xmlwf-improve-help-output
xmlwf: Improve "xmlwf -h" help output
2019-09-05 12:35:40 +02:00
zhouzhongyuan
90e44cde80 fix potential memory leak in elements.c 2019-09-05 16:17:51 +08:00
Sebastian Pipping
041e7768be xmlwf: Improve "xmlwf -h" help output 2019-09-05 00:45:14 +02:00
Sebastian Pipping
53f81da945 qa.sh: Auto-detect QA_COMPILER 2019-09-04 21:53:47 +02:00
Sebastian Pipping
3ae79a8893 Changes: Mention CVE and commit SHA1 for #317 2019-09-04 20:43:43 +02:00
Sebastian Pipping
c9b669e42a CMake: Build fuzzing Expat once, not twelve times 2019-09-03 23:20:26 +02:00
Sebastian Pipping
6da1f19625
Merge pull request #318 from libexpat/issue-317
Deny internal entities closing the doctype (for #317)
2019-09-03 22:00:41 +02:00
Sebastian Pipping
8fe8fca412 CMake: Add missing -municode for wchar_t MinGW 2019-09-03 01:43:36 +02:00
Sebastian Pipping
3e38a17340 CMake: Fix use of XML_UNICODE and XML_UNICODE_WCHAR_T
C/C++ code is not ready to get those from expat_config.h, yet.
2019-09-03 00:36:36 +02:00
Sebastian Pipping
50f63ae089 qa.sh: Migrate from GNU Autotools to CMake 2019-09-02 21:31:46 +02:00
Sebastian Pipping
4657d2d3de CMake: Drop .c files from expat_SRCS that are empty unless included 2019-09-02 21:31:46 +02:00
Sebastian Pipping
201094142d CMake: Do not produce expat.pc pkg-config file with MSVC 2019-09-02 21:31:46 +02:00
Sebastian Pipping
da8be0224c CMake: Port "make xml-runtest" over from GNU Autotools 2019-09-02 21:31:46 +02:00
Sebastian Pipping
d78357da50 CMake: Make MinGW support work 2019-09-02 00:45:23 +02:00
Sebastian Pipping
0e3db7fcff CMake: Fix off-by-one indentation 2019-09-02 00:18:59 +02:00
Sebastian Pipping
1a67aa4ad2 win32: Fix slash to be a backslash in expat.iss 2019-09-02 00:18:48 +02:00
Sebastian Pipping
660a83ea20 Changes: Reference #331 and #333 2019-09-01 21:10:09 +02:00
Sebastian Pipping
8735c77127 xmltok.c: Fix unused variables warnings for -DXML_MIN_SIZE 2019-09-01 16:07:56 +02:00
Sebastian Pipping
294fa6782c README.md: Make CMake option listing more readable 2019-08-31 02:25:05 +02:00
Sebastian Pipping
55e4807c26 Changes: Add reference to #329 2019-08-31 02:23:49 +02:00
Sebastian Pipping
493aebf28f Changes: Mention -DEXPAT_BUILD_FUZZERS=(ON|OFF) 2019-08-30 23:54:51 +02:00
Sebastian Pipping
adbfa6a2ed Changes: Document move to EXPAT_ CMake option namespace prefix 2019-08-30 23:54:51 +02:00
Sebastian Pipping
b67044f475 README.md: List non-advanced build options 2019-08-30 23:54:51 +02:00
Sebastian Pipping
161bb9f5ab CMake: Mark options as advanced where guessing would go wrong, easily 2019-08-30 23:54:51 +02:00
Sebastian Pipping
bf8ab25a0d CMake: Get options to show with "cmake -D_EXPAT_HELP=ON -LH ." 2019-08-30 23:54:51 +02:00
Sebastian Pipping
54a5ea1bb8 CMake: Fix pull request reference typo 2019-08-30 23:54:51 +02:00
Sebastian Pipping
3007f5ecf2 CMake: Report about XML_MIN_SIZE in summary 2019-08-30 23:54:51 +02:00
Sebastian Pipping
d13ceacad1 CMake: Rename XML_% to EXPAT_% 2019-08-30 23:54:51 +02:00
Sebastian Pipping
fce015875e CMake: Rename BUILD_shared to EXPAT_SHARED_LIBS 2019-08-30 23:54:51 +02:00
Sebastian Pipping
474471cdc2 CMake: Rename INSTALL to EXPAT_ENABLE_INSTALL 2019-08-30 23:54:51 +02:00
Sebastian Pipping
4b214610e2 CMake: Rename MSVC_USE_STATIC_CRT to EXPAT_MSVC_STATIC_CRT 2019-08-30 23:54:51 +02:00
Sebastian Pipping
0eb711e9b6 CMake: Rename USE_SYS_GETRANDOM to EXPAT_WITH_SYS_GETRANDOM 2019-08-30 21:39:15 +02:00
Sebastian Pipping
b244583d34 CMake: Rename USE_GETRANDOM to EXPAT_WITH_GETRANDOM 2019-08-30 21:38:21 +02:00
Sebastian Pipping
458be796ae CMake: Rename WARNINGS_AS_ERRORS to EXPAT_WARNINGS_AS_ERRORS 2019-08-30 21:38:21 +02:00
Sebastian Pipping
20bb6ed0b3 CMake: Rename USE_libbsd to EXPAT_WITH_LIBBSD 2019-08-30 21:38:21 +02:00
Sebastian Pipping
0c6508b9f6 CMake: Rename BUILD_fuzzers to EXPAT_BUILD_FUZZERS 2019-08-30 21:38:21 +02:00
Sebastian Pipping
48c71b566c CMake: Rename BUILD_doc to EXPAT_BUILD_DOCS 2019-08-30 21:38:21 +02:00
Sebastian Pipping
3eb4909120 CMake: Rename BUILD_doc_default to _EXPAT_BUILD_DOCS_DEFAULT 2019-08-30 21:38:21 +02:00
Sebastian Pipping
9595968a3e CMake: Rename BUILD_tests to EXPAT_BUILD_TESTS 2019-08-30 21:38:21 +02:00
Sebastian Pipping
87d60093fd CMake: Rename BUILD_examples to EXPAT_BUILD_EXAMPLES 2019-08-30 21:38:21 +02:00
Sebastian Pipping
c3bd1953be CMake: Rename BUILD_tools to EXPAT_BUILD_TOOLS 2019-08-30 21:38:21 +02:00
Sebastian Pipping
4b1dfb91ca CMake: Rename BUILD_tools_default to _EXPAT_BUILD_TOOLS_DEFAULT 2019-08-30 21:38:21 +02:00
Sebastian Pipping
3a2c6414ee CMake: Add option -DXML_MIN_SIZE=(ON|OFF), default OFF 2019-08-30 16:00:18 +02:00
Sebastian Pipping
085bfd570b Changes: Pull entry on XML_LARGE_SIZE up next to XML_ATTR_INFO 2019-08-30 15:53:11 +02:00
Sebastian Pipping
f4accb1032 Changes: Enrich CMake related entries 2019-08-30 02:30:28 +02:00
Sebastian Pipping
716c53052b CMake: Provide files for config-mode find_package 2019-08-30 02:30:28 +02:00
Sebastian Pipping
442cb95d29 CMake: Add argument -DXML_LARGE_SIZE=ON 2019-08-30 02:30:28 +02:00
Sebastian Pipping
f9be0365a7 CMake: Extract macro expat_bool_to_int to reduce code duplication 2019-08-30 02:30:28 +02:00
Sebastian Pipping
8666a6dfe8 CMake: Fix PACKAGE_* variables in expat_config.h.cmake 2019-08-30 02:30:28 +02:00
Sebastian Pipping
d31810306a CMake: Make expat_config.h.cmake match expat_config.h.in variable order 2019-08-30 02:30:28 +02:00
Sebastian Pipping
cc5772f7dd CMake: Mimic lib/Makefile.am with regard to doc installation 2019-08-30 01:19:14 +02:00
Sebastian Pipping
65ad42cb6f CMake: Install expat_config.h to include directory 2019-08-30 01:19:14 +02:00
Sebastian Pipping
b429525a0b CMake: Move expat_install up for upcoming use 2019-08-30 01:19:14 +02:00
Sebastian Pipping
260f343dc8
Merge pull request #325 from libexpat/drop-support-msvc-2003
Drop support for MSVC 2003 (related to #323)
2019-08-30 01:18:27 +02:00
Sebastian Pipping
2d1fb08c61 win32: Get readme back in sync with CMake
Related commit: 84cf2fb213
2019-08-29 21:20:15 +02:00
Sebastian Pipping
89d17f0d1f README.md: Document supported compilers 2019-08-29 19:49:56 +02:00
Sebastian Pipping
00dabedd00 expat_external.h: Inline remains of XML_USE_MSC_EXTENSIONS 2019-08-29 19:49:56 +02:00
Sebastian Pipping
36fa081cfe Drop support for Visual Studio <=7.1/2003
_MSC_VER 1400 is 8.0/2005
2019-08-29 19:49:27 +02:00
Sebastian Pipping
ed04ca06fb fuzz: Add .gitignore 2019-08-29 17:25:46 +02:00
Sebastian Pipping
a16ca4c913 Changes: Add reference to #322 2019-08-29 14:14:33 +02:00
Sebastian Pipping
84cf2fb213 Revert "CMake: Enabled MSVC_USE_STATIC_CRT by default (to match MSVC)"
This reverts commit f42417b92c.
2019-08-29 14:00:17 +02:00
Sebastian Pipping
13b579ace2
Merge pull request #322 from libexpat/cmake-inno-setup
Drop MSVC files + build Inno Setup installer using CMake and msbuild
2019-08-29 13:56:22 +02:00
Sebastian Pipping
030c536e5c reference.html: Fix mismatched tag 2019-08-29 13:33:34 +02:00
Sebastian Pipping
71485dcf8b win32: Remove MSVC solution and project files 2019-08-29 02:35:05 +02:00
Sebastian Pipping
7ae689fd95 docs: Migrate to generated solution files with CMake and msbuild on Windows 2019-08-29 02:34:14 +02:00
Sebastian Pipping
f42417b92c CMake: Enabled MSVC_USE_STATIC_CRT by default (to match MSVC) 2019-08-29 02:30:34 +02:00
Sebastian Pipping
208e9b4f60 CMake: Re-introduce MT/MD postfix for static windows .lib files 2019-08-29 02:30:34 +02:00
Sebastian Pipping
ee9a7a718e win32: Implement build_expat_iss.bat 2019-08-29 02:30:07 +02:00
Sebastian Pipping
66b4a3f673 win32: Add CMake files to Inno Setup 2019-08-29 02:21:52 +02:00
Sebastian Pipping
37db5cbea4 CMake: Mention CMAKE_BUILD_TYPE in summary 2019-08-29 02:21:52 +02:00
Sebastian Pipping
b2274348e2 CMake: Advertise CXX settings for fuzzer so that C++ tests will link fine 2019-08-29 01:00:43 +02:00
Sebastian Pipping
b784c75670 CMake: Get off target_link_options of CMake >=3.13 2019-08-29 00:58:50 +02:00
Sebastian Pipping
5031b61352 CMake: Be more helpful with regard to CMAKE_C_COMPILER_ID 2019-08-29 00:58:26 +02:00
Sebastian Pipping
d608f79849 CMake: Check C rather than C++ compiler for clang for fuzzing 2019-08-29 00:56:34 +02:00
Sebastian Pipping
438493691f tests: Cover denying internal entities closing the doctype 2019-08-28 17:20:51 +02:00
Sebastian Pipping
4406ffb998 Changes: Document doctype closing heap overflow 2019-08-28 17:20:51 +02:00
Sebastian Pipping
22e8631be6 CMake: Add BUILD_fuzzers to summary 2019-08-28 16:45:50 +02:00
Sebastian Pipping
c20b758c33 xmlparse.c: Deny internal entities closing the doctype 2019-08-28 15:14:26 +02:00
Sebastian Pipping
a78e8624c9 Changes: Document #308 2019-08-28 14:12:56 +02:00
Sebastian Pipping
745de9a519
Merge pull request #319 from libexpat/byte-type-comments
xmltok: Add more in-code documentation about byte types
2019-08-28 12:59:48 +02:00
Mitch Phillips
29eddcae5f Add XML fuzzers to libexpat upstream. (#308) 2019-08-28 12:57:57 +02:00
Sebastian Pipping
748ac8799d xmltok: Add more in-code documentation about byte types 2019-08-28 01:27:32 +02:00
Sebastian Pipping
e3d6578214 CMake: Windows: Revert "MT" naming postfix bits 2019-08-21 18:19:36 +02:00
Sebastian Pipping
1544741d03 CMake: Add suffix w?d?(MT)? to binaries on Windows 2019-08-17 22:53:48 +02:00
Sebastian Pipping
36ecc4dc12 CMake: Bump version requirement to CMake 3.1.3 2019-08-17 22:50:47 +02:00
Sebastian Pipping
b134d64694
Merge pull request #315 from libexpat/issue-306-configure-ac-style-doc
configure-ac-style.md: Add configure.ac style guide (#306)
2019-08-17 22:15:39 +02:00
Sebastian Pipping
80d2829fa8 Merge branch 'david-loffredo-portable-unused-param-fix' (#313) 2019-08-17 18:20:49 +02:00
Sebastian Pipping
75c93b91df Changes: Document #313 2019-08-17 18:19:41 +02:00
Sebastian Pipping
0b613819d5 Merge branch 'david-loffredo-win64-cast-warnings' (#310) 2019-08-17 18:02:26 +02:00
Sebastian Pipping
2950d7287a Changes: Document #310 2019-08-17 18:01:37 +02:00
Sebastian Pipping
1d920e2865 configure-ac-style.md: Add configure.ac style guide 2019-08-17 17:37:56 +02:00
David Loffredo
1ec27cb32f update xmlwf and tests to new UNUSED_P definition
Signed-off-by: David Loffredo <loffredo@steptools.com>
2019-08-16 12:20:00 -04:00
David Loffredo
561773607c handle unused parameters with the usual (void)param; statement rather than gcc-specific attribute
Signed-off-by: David Loffredo <loffredo@steptools.com>
2019-08-16 09:52:09 -04:00
Hanno
7f91a3d1b6
Add -fno-common to ASAN tests to make sure global buffer overflows are detected. 2019-08-16 11:45:18 +02:00
David Loffredo
9cb5c2c051 fix loss of data warnings with vc15 win64 and /W4
Signed-off-by: David Loffredo <loffredo@steptools.com>
2019-08-15 16:39:48 -04:00
Hanno
2299f37fea
Make sure UBSAN errors cause a hard abort. 2019-08-15 20:44:40 +02:00
Sebastian Pipping
59da88ab55 CMake: Be fine without C++ compiler when tests are disabled 2019-08-12 21:26:20 +02:00
Sebastian Pipping
af8528242c CMake: Make use of PROJECT_VERSION 2019-08-12 21:26:20 +02:00
Sebastian Pipping
8783534621 CMake: Require CMake >=3.0.2 2019-08-12 21:26:17 +02:00
Sebastian Pipping
bb0abf601a CMake: Make version requirement first statement in file 2019-08-12 21:26:08 +02:00
Sebastian Pipping
0d2fe1d114 CMake: Move enable_testing closer to test runner code 2019-08-12 21:26:08 +02:00
Sebastian Pipping
db81bf02a7 CMake: Use SEND_ERROR to report more errors at once 2019-08-12 21:26:08 +02:00
Sebastian Pipping
5ccfc06ff7 CMake: A more section comments 2019-08-12 21:26:08 +02:00
Sebastian Pipping
2f77bfef82 CMake: Move header installation away from pkg-config file code 2019-08-12 21:26:08 +02:00
Sebastian Pipping
823672d853 CMake: Gather configuration options near the top 2019-08-12 21:26:08 +02:00
Sebastian Pipping
19146b7f61 CMake: Produce configuration summary 2019-08-12 21:26:08 +02:00