Commit Graph

381 Commits

Author SHA1 Message Date
Sebastian Pipping
c2b5d52404 xmlwf: Address Clang 13 warning -Wunused-but-set-variable 2021-12-26 19:51:44 +01:00
Sebastian Pipping
5bab452b49 lib: Address GCC 11.2.1 compiler warning
Symptom was:

In file included from xmltok.c:58:
xmltok_ns.c: In function ‘findEncodingNS’:
xmltok.h:276:10: warning: ‘buf’ may be used uninitialized [-Wmaybe-uninitialized]
  276 |   (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim))
      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmltok_ns.c:99:3: note: in expansion of macro ‘XmlUtf8Convert’
   99 |   XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1);
      |   ^~~~~~~~~~~~~~
xmltok.h:276:10: note: by argument 5 of type ‘const char *’ to ‘enum XML_Convert_Result(const ENCODING *, const char **, const char *, char **, const char *)’ {aka ‘enum XML_Convert_Result(const struct encoding *, const char **, const char *, char **, const char *)’}
  276 |   (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim))
      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmltok_ns.c:99:3: note: in expansion of macro ‘XmlUtf8Convert’
   99 |   XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1);
      |   ^~~~~~~~~~~~~~
In file included from xmltok.c:1666:
xmltok_ns.c:96:8: note: ‘buf’ declared here
   96 |   char buf[ENCODING_MAX];
      |        ^~~
2021-12-25 18:15:25 +01:00
Sebastian Pipping
4d9059d3cf Set expected release date for 2.4.2 2021-12-19 19:29:54 +01:00
Sebastian Pipping
716735e56b Bump version info from 9:1:8 to 9:2:8
See https://verbump.de/ for what these numbers do
2021-12-17 18:01:32 +01:00
Sebastian Pipping
96ff8de1d6 Changes: Document #502 #503 #507 #519 + fix reference to #498 2021-12-17 17:50:32 +01:00
Sebastian Pipping
8589e9598a CMake: Ensure libexpat*.lib filenames with MSVC
This fixes a post-2.4.1 regression from
commit 3486fd6e3d
introduced by pull request #495.
2021-12-15 16:40:15 +01:00
Sebastian Pipping
8c2b1853cd doc: Fix return value docs on XML_SetBillionLaughs[..] functions (#522) 2021-12-14 01:33:49 +01:00
Sebastian Pipping
105a5c6ee7 Changes: Document #513 and #514 2021-10-17 16:32:08 +02:00
Sebastian Pipping
0b7a88b355 Autotools|CMake: Link against libm for function "isnan"
$ git --no-pager grep -lw isnan
lib/xmlparse.c
tests/runtests.c
xmlwf/xmlwf.c
2021-09-20 18:27:52 +02:00
Sebastian Pipping
1d4bb74c34 CMake: Fix pkg-config section "Libs" for multi-config CMake generators 2021-07-06 16:22:38 +02:00
Sebastian Pipping
3486fd6e3d CMake: Fix pkg-config section "Libs" for non-release MinGW builds 2021-07-06 16:22:38 +02:00
Sebastian Pipping
00839393f3 Makefile.am: Include buildconf.sh and fuzz/*.c with release archives 2021-06-05 21:17:25 +02:00
Sebastian Pipping
92c3cad80f Set expected release date for 2.4.1 2021-05-23 17:04:56 +02:00
Sebastian Pipping
13445938e7 Bump version info from 9:0:8 to 9:1:8
See https://verbump.de/ for what these numbers do.
2021-05-23 16:57:40 +02:00
Sebastian Pipping
779d147681 Keep macro SIZEOF_VOID_P out of expat_config.h(.in) for multilib support 2021-05-23 15:43:56 +02:00
Sebastian Pipping
ecdff1c906 Set expected release date for 2.4.0 2021-05-22 19:42:02 +02:00
Sebastian Pipping
e083f03235 Bump version info from 8:0:7 to 9:0:8
See https://verbump.de/ for what these numbers do
2021-05-22 19:07:49 +02:00
Sebastian Pipping
b913a529ae Bump version to 2.4.0 2021-05-22 19:07:49 +02:00
Sebastian Pipping
bc6495dfc0 Changes: Extend section on upcoming release 2.4.0 2021-05-22 19:07:49 +02:00
Sebastian Pipping
731bdee053 Changes: Document new XML_FEATURE_ constants 2021-05-22 19:07:49 +02:00
Sebastian Pipping
c57141d597 Changes: Combine notes on billion laughs attack protection 2021-05-22 19:07:49 +02:00
Sebastian Pipping
192af39be0 Changes: Document Autotools CMake file fixes 2021-05-21 13:15:34 +02:00
Sebastian Pipping
60959f2b49 lib: Fix accounting of CDATA sections inside of general entities 2021-05-14 20:46:09 +02:00
Sebastian Pipping
7e08029271 Changes: Document support for CMake variable BUILD_SHARED_LIBS 2021-05-12 15:05:25 +02:00
Sebastian Pipping
3f2f878662 Changes: Document protection against billion laughs attacks 2021-05-07 18:25:08 +02:00
Sebastian Pipping
ed36812db2 lib: Fix macro IS_INVALID_CHAR (for UTF-16 with macro XML_MIN_SIZE defined)
What happens is that with macro XML_MIN_SIZE defined,
for UTF-16 macro IS_INVALID_CHAR was being set to ..

> #define IS_INVALID_CHAR(enc, p, n)  (AS_NORMAL_ENCODING(enc)->isInvalid##n(enc, p))

.. which calls NULL pointers in .isInvalid{2,3,4} at runtime.

For UTF-16 we actually need what xmltok_impl.c does for macro
IS_INVALID_CHAR when it has not yet been defined:

> #  ifndef IS_INVALID_CHAR
> #    define IS_INVALID_CHAR(enc, ptr, n) (0)
> #  endif

So the fix is a combination of these two:
- Use .isInvalid{2,3,4} where needed and available and
- return 0/false for UTF-16 where .isInvalid{2,3,4} are NULL.
2021-04-26 14:18:00 +02:00
Sebastian Pipping
1a5ae0e4c0 Changes: Document improvements to the man page 2021-04-25 19:13:00 +02:00
Sebastian Pipping
c028d9b280 xmlwf: Simplify synopsis 2021-04-25 17:49:21 +02:00
Sebastian Pipping
989dd1b2ca CMake: Support absolute paths for CMAKE_INSTALL_(LIB|INCLUDE)DIR (fixes #458) 2021-04-06 19:49:28 +02:00
Sebastian Pipping
f29b48cfca Unexpose function _INTERNAL_trim_to_complete_utf8_characters (#457) 2021-04-05 21:44:15 +02:00
Sebastian Pipping
7d375b1bd9 Changes: Set release date for version 2.3.0 2021-03-24 21:05:04 +01:00
Sebastian Pipping
f546f0658b README.md: Document use of libexpat from a CMake-based project 2021-03-24 21:05:04 +01:00
Sebastian Pipping
7991830172 Changes: Document #425, #426, #434, #435, #436, #437, #441, #443, #446 (#445) 2021-03-23 00:54:35 +01:00
Sebastian Pipping
1361370223 Changes: Improve documentation of #444 2021-03-23 00:54:35 +01:00
Sebastian Pipping
30ec88b351 configure.ac: Fix use of M4 macro "expat_version"
Regression introduced in fd9a7d649e
as part of pull request #450
2021-03-23 00:01:03 +01:00
Sebastian Pipping
b50ff5adaa Autotools: Install CMake files 2021-03-22 22:30:00 +01:00
Sebastian Pipping
fd9a7d649e configure.ac: Apply partial autoupdate-2.71
Addressed:
warning: The macro `AC_CONFIG_HEADER' is obsolete.

Not addressed yet:
warning: AC_PROG_CC_C99 is obsolete; use AC_PROG_CC
2021-03-22 18:28:11 +01:00
Sebastian Pipping
a6f3f2a3a2 xmlwf: Split off exit status 4 for invalid argument invokation 2021-03-20 18:20:09 +01:00
Sebastian Pipping
689cb6527f Changes: Fix inconsistent indentation 2021-03-20 18:20:09 +01:00
Sebastian Pipping
dd26478455 Windows: Drop support for Visual Studio <=14.0/2015 2021-03-20 15:38:49 +01:00
Sebastian Pipping
10e75ca59a Merge branch 'timbray-master' (#439) 2021-03-17 21:46:32 +01:00
Sebastian Pipping
4a6524e89e Changes: Document #439 2021-03-17 21:46:05 +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
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
46698550ea Changes: Document #382 and #428 2020-10-30 10:10:53 +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
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