libexpat/expat/lib
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
..
.gitignore
ascii.h
asciitab.h Mass-apply clang-format 9 using ./apply-clang-format.sh 2019-08-03 21:31:44 +02:00
expat_external.h expat_external.h: Inline remains of XML_USE_MSC_EXTENSIONS 2019-08-29 19:49:56 +02:00
expat.h lib: Fix references to version 2.2.11 to be about 2.3.0, instead 2021-03-24 21:05:04 +01:00
iasciitab.h Mass-apply clang-format 9 using ./apply-clang-format.sh 2019-08-03 21:31:44 +02:00
internal.h Unexpose function _INTERNAL_trim_to_complete_utf8_characters (#457) 2021-04-05 21:44:15 +02:00
latin1tab.h Mass-apply clang-format 9 using ./apply-clang-format.sh 2019-08-03 21:31:44 +02:00
libexpat.def Unexpose function _INTERNAL_trim_to_complete_utf8_characters (#457) 2021-04-05 21:44:15 +02:00
libexpatw.def Unexpose function _INTERNAL_trim_to_complete_utf8_characters (#457) 2021-04-05 21:44:15 +02:00
Makefile.am Autotools: Give test suite access to internal symbols 2021-04-05 20:05:50 +02:00
nametab.h Mass-apply clang-format 9 using ./apply-clang-format.sh 2019-08-03 21:31:44 +02:00
siphash.h Drop remaining support for Visual Studio 2008, 2010, 2012 (#422) 2020-10-03 21:30:13 +02:00
utf8tab.h Mass-apply clang-format 9 using ./apply-clang-format.sh 2019-08-03 21:31:44 +02:00
winconfig.h Resolve macro HAVE_EXPAT_CONFIG_H 2021-04-22 00:11:28 +02:00
xmlparse.c Resolve macro HAVE_EXPAT_CONFIG_H 2021-04-22 00:11:28 +02:00
xmlrole.c Resolve macro HAVE_EXPAT_CONFIG_H 2021-04-22 00:11:28 +02:00
xmlrole.h Mass-apply clang-format 9 using ./apply-clang-format.sh 2019-08-03 21:31:44 +02:00
xmltok_impl.c lib: Add comments about effect of XML_MIN_SIZE to xmltok_impl.c 2021-04-26 14:18:00 +02:00
xmltok_impl.h xmltok: Add more in-code documentation about byte types 2019-08-28 01:27:32 +02:00
xmltok_ns.c Mass-apply clang-format 9 using ./apply-clang-format.sh 2019-08-03 21:31:44 +02:00
xmltok.c lib: Fix macro IS_INVALID_CHAR (for UTF-16 with macro XML_MIN_SIZE defined) 2021-04-26 14:18:00 +02:00
xmltok.h Mass-apply clang-format 9 using ./apply-clang-format.sh 2019-08-03 21:31:44 +02:00