Commit Graph

696 Commits

Author SHA1 Message Date
Sebastian Pipping
a5414b759d Bump version from 2.2.7 to 2.2.8 2019-09-13 22:03:21 +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
8735c77127 xmltok.c: Fix unused variables warnings for -DXML_MIN_SIZE 2019-09-01 16:07: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
71485dcf8b win32: Remove MSVC solution and project files 2019-08-29 02:35:05 +02:00
Sebastian Pipping
c20b758c33 xmlparse.c: Deny internal entities closing the doctype 2019-08-28 15:14:26 +02:00
Sebastian Pipping
748ac8799d xmltok: Add more in-code documentation about byte types 2019-08-28 01:27:32 +02:00
Sebastian Pipping
80d2829fa8 Merge branch 'david-loffredo-portable-unused-param-fix' (#313) 2019-08-17 18:20:49 +02: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
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
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
David Loffredo
c5a2867de1 Make win32 stdlib.h define rand_s(), add writeRandomBytes_rand_s().
Signed-off-by: David Loffredo <loffredo@steptools.com>
2019-08-07 19:42:16 +02:00
Sebastian Pipping
4007706509 xmlparse.c: Fix effect of XML_StopParser for end element handlers (#240) 2019-08-04 15:15:27 +02:00
clang-format
d248bbd940 Mass-apply clang-format 9 using ./apply-clang-format.sh 2019-08-03 21:31:44 +02:00
Sebastian Pipping
c951711d75 siphash.h: Prepare for application of clang-format 2019-08-03 21:31:44 +02:00
Sebastian Pipping
61b010bde6 xmltok_impl.c: Re-format use of LEAD_CASE macro
This will make clang-format 9 produce stable results.
2019-08-03 21:31:44 +02:00
Sebastian Pipping
c174c05433 expat.h: Drop OpenVMS support leftover (#14) 2019-07-28 17:58:56 +02:00
Sebastian Pipping
3053f53d34 xmlparse.c: Address Clang Static Analyzer false positive (#295) 2019-07-28 00:09:25 +02:00
Sebastian Pipping
21e11f7782 internal.h: Fix UNUSED_P for GCC 3.3 (fixes #288) 2019-07-20 16:42:21 +02:00
Sebastian Pipping
d4d8d486af xmltok.c: Use memcpy instead of copying single bytes (fixes #282)
Fixes cppcheck's complaint as a side-effect.
2019-07-17 16:21:32 +02:00
Sebastian Pipping
0117f01906 xmlparse.c: Limit scope of new_connector to save sizeof(char*) on the stack 2019-07-01 20:15:11 +02:00
Sebastian Pipping
eef2b12935 xmlparse.c: Drop needless re-calculation of keep (#268)
Fixes variable shadowing as a side effect.
2019-06-29 22:41:54 +02:00
Sebastian Pipping
94ea91cf6a xmlparse.c: Resolve temp variable shadow (#268)
Also add const.
2019-06-29 22:40:44 +02:00
Sebastian Pipping
d3b78b42a2 Bump version from 2.2.6 to 2.2.7 2019-06-19 18:41:14 +02:00
Sebastian Pipping
11f8838bf9 xmlparse.c: Fix extraction of namespace prefix from XML name (#186) 2019-06-12 15:42:54 +02:00
Sebastian Dröge
1bc4aff75e Fix syntax of Windows module definition files
Otherwise this fails with:
  Cannot export @: symbol not defined
2019-01-10 21:26:07 +02:00
Mariusz Zaborski
7f3291057b Un-break build libexpat.
The writeRandomBytes_arc4random is not used if the arc4random_buf
is available. This caused compiler to throw warnings.
Finally this breaks a build when warnings are treated as errors.
2018-11-04 19:34:08 +01:00
Sebastian Pipping
c39d391550 Mark disabled code to make it easy to see again 2018-10-21 14:36:00 +02:00
Marco Maggi
5841ab111b change code exclusion style to make sure that the excluded code still compiles 2018-10-21 14:31:39 +02:00
Mikhail Matrosov
6b0d52543f Remove expat.h from .gitignore (#224)
Since it is actually present in the repository and is used in the build.
2018-10-05 17:14:37 +02:00
Benjamin Peterson
fba16e0bfe Assume memmove(3) exists.
memmove is specified since POSIX.1-2001 and C89, and bcopy is deprecated.
2018-09-20 21:24:17 +02:00
Yury Gribov
30f8c30b6a Hide private symbols. 2018-09-20 17:45:01 +01:00
Sebastian Pipping
39e487da35 Prepare release version 2.2.6 (#209) 2018-08-12 21:40:00 +02:00
Sebastian Pipping
50f4e1695f Re-add int casts dropped at 3960f6061a (#170)
This is meant to address warning C4244.

> C4244: '=' : conversion from '__int64' to 'int', possible loss of data
> C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data
2018-08-06 23:05:23 +02:00
Rhodri James
3960f6061a (#170) Prevent XML_GetBuffer doing arithmetic with NULL pointers 2018-08-06 19:56:50 +02:00
Rhodri James
428d69cd42 Remove senseless pointer arithmetic (issue #170) 2018-08-06 19:56:50 +02:00
Rhodri James
0959d8e409 Revise (according to @hartwork's plan) nearer to original code (#204)
This reverts commit 3f5b1cfa75.
2018-08-03 20:25:40 +02:00
Rhodri James
3f5b1cfa75 Fix for #204, XML_ResumeParser regression
When we suspend at the end of input, we failed to update the
parser's m_processor field to point to the epilogProcessor.  When
the regular contentProcessor runs with no input, it returns an
error (which is what you usually want).  If we had not suspended,
in those circumstances we would have run the epilogProcessor
instead, so we just make sure this is the processor we will invoke
when we resume parsing.
2018-08-03 20:19:05 +02:00
Sebastian Pipping
e314feb290 Document #202 2018-07-08 19:36:30 +02:00
Sebastian Pipping
5994e40650 siphash.h: Fix indentation (#202) 2018-07-08 19:36:30 +02:00
Anton Maklakov
7981e23331 Fix -Wimplicit-fallthrough related warnings 2018-07-06 10:12:05 +07:00
Benjamin Peterson
cc1c5e2ce3
fix capitalization in comment 2018-06-25 21:14:12 -07:00
luz.paz
5b1584c81d Misc. typos
Found via `codespell -q 3`
2018-02-16 09:47:13 -05:00
Sebastian Pipping
41fe2b887e expat.h: Fix comment typo (#187) 2018-02-01 21:19:44 +01:00
Tomasz Kłoczko
d739e1d0e2 Drop -rpath libtool option as libexpat.so has no dependencies (#181) 2018-01-07 23:23:31 +01:00
Sebastian Pipping
fc9fe8f17c Address warning about sip_tobin by Visual Studio
Message was:
Warning: C4551 function call missing argument
2017-12-03 17:33:35 +01:00
vanklompf
399eadd15d Enable CRT_SECURE_NO_WARNINGS in default VC projects
Silence warnings on windows builds
2017-12-03 16:30:58 +01:00
Karl Waclawek
a1f553f5f5 Auto-upgrade of project files performed by Visual Studio 2017. This should not be a problem as the Community Edition of VS 2017 can be obtained for free. 2017-11-01 10:09:14 -04:00