Commit Graph

2833 Commits

Author SHA1 Message Date
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
Sebastian Pipping
68318981c0 CMake: Extract variable test_SRCS 2019-08-12 21:26:08 +02:00
kkkunche
3987529951 Correct the indentation for configure.ac 2019-08-12 21:16:56 +02:00
Sebastian Pipping
c76f2c4690 Changes: Document out-of-source fix to "make run-xmltest" 2019-08-11 19:38:08 +02:00
Sebastian Pipping
d4ed0019a9 Makefile.am: Make "run-xmltest" more robust
Robust towards existing file $(srcdir)/tests/xmlts.zip
Robust towards existing directory $(srcdir)/tests/xmlconf/

Because if make finds the in $(srcdir) and does not create them in $(builddir).
2019-08-11 19:38:08 +02:00
Sebastian Pipping
3cb24b6e59 xmltest.sh: Remove dead code 2019-08-11 19:38:08 +02:00
Sebastian Pipping
dc6e298679 xmltest.sh: Fix for out-of-source builds 2019-08-11 19:38:08 +02:00
Sebastian Pipping
ef5be9f1bb Makefile.am: Support direct "./configure && make run-xmltest" 2019-08-11 19:38:08 +02:00
Sebastian Pipping
17dcf52606 Makefile.am: Use $(srcdir) and $(*builddir) in target "run-xmltest" 2019-08-11 19:38:00 +02:00
Sebastian Pipping
08a7d458bd apply-clang-format.sh: Adapt to new expat_config.h.cmake line endings 2019-08-11 02:12:18 +02:00
Sebastian Pipping
45e1b4f595 CMake.README: Remove trailing whitespace 2019-08-10 23:53:50 +02:00
dos2unix
5e4af89d56 CMake: Migrate files from Windows to Unix line endings 2019-08-10 23:52:10 +02:00
Sebastian Pipping
ca9c19e161 Changes: Streamline entries about new CMake arguments 2019-08-10 20:33:00 +02:00
Sebastian Pipping
b4690c0d55 Changes: Document #239 and #301 2019-08-10 20:30:27 +02:00
kkkunche
d6cd0e4769 Autotool new options : --with/--without -getrandom and --with/--without -sysgetrandom.
Autodetect works by default for getrandom and sysgetrandom.
With the these options user can use the detected functions or ignore them.
2019-08-10 20:25:42 +02:00
Sebastian Pipping
8c1d9c144a Changes: Document #299 and #302 2019-08-07 19:50:50 +02:00
Sebastian Pipping
8a935ff9ab xmlparse.c: Mention rand_s with stdlib include 2019-08-07 19:50:50 +02:00
David Loffredo
5d34a708e7 replace loadlibrary.c and RtlGenRandom call with rand_s() on windows
Signed-off-by: David Loffredo <loffredo@steptools.com>
2019-08-07 19:43:38 +02:00