]> granicus.if.org Git - libexpat/log
libexpat
7 years agocoverage.sh: Fix two comment typos
Sebastian Pipping [Sat, 24 Jun 2017 14:11:09 +0000 (16:11 +0200)]
coverage.sh: Fix two comment typos

7 years agoMerge branch 'haypo-win64_warn' (pull request #58)
Sebastian Pipping [Fri, 23 Jun 2017 19:06:56 +0000 (21:06 +0200)]
Merge branch 'haypo-win64_warn' (pull request #58)

7 years agosiphash.h: Compress change log a bit
Sebastian Pipping [Fri, 23 Jun 2017 19:00:33 +0000 (21:00 +0200)]
siphash.h: Compress change log a bit

7 years agoChanges/siphash.h: Extend log, give credit to Victor Stinner
Sebastian Pipping [Fri, 23 Jun 2017 18:57:30 +0000 (20:57 +0200)]
Changes/siphash.h: Extend log, give credit to Victor Stinner

7 years agoFix compiler warnings on Windows 64-bit
Victor Stinner [Fri, 23 Jun 2017 08:39:26 +0000 (10:39 +0200)]
Fix compiler warnings on Windows 64-bit

Explicitly cast on integer downcasting to fix compiler warnings.

7 years agoMerge branch 'travis-matrix' (pull request #54)
Sebastian Pipping [Thu, 22 Jun 2017 18:38:04 +0000 (20:38 +0200)]
Merge branch 'travis-matrix' (pull request #54)

7 years agoTravis CI: No need to download upfront any more
Sebastian Pipping [Thu, 22 Jun 2017 18:31:21 +0000 (20:31 +0200)]
Travis CI: No need to download upfront any more

Since e9e329b4f44fdc76d854764c86ca99816a890e44

7 years agosiphash.h: Fix duplicate/leftover line in the header (#57)
Sebastian Pipping [Thu, 22 Jun 2017 18:26:53 +0000 (20:26 +0200)]
siphash.h: Fix duplicate/leftover line in the header (#57)

7 years agoChanges: Mention getrandom detection issues on macOS (#52)
Sebastian Pipping [Mon, 19 Jun 2017 18:37:34 +0000 (20:37 +0200)]
Changes: Mention getrandom detection issues on macOS (#52)

7 years agoTravis CI: Use build matrix
Muhammad Kaisar Arkhan [Mon, 19 Jun 2017 12:11:34 +0000 (19:11 +0700)]
Travis CI: Use build matrix

Using the build matrix can help speeding up the CI since they run
simultaneously.

Closes https://github.com/libexpat/libexpat/issues/41

7 years agosiphash.h: Address lack of stdint.h for Visual Studio 2003-2008
Sebastian Pipping [Sun, 18 Jun 2017 20:03:01 +0000 (22:03 +0200)]
siphash.h: Address lack of stdint.h for Visual Studio 2003-2008

7 years agoChanges: Start post-2.2.1 section
Sebastian Pipping [Sun, 18 Jun 2017 19:50:50 +0000 (21:50 +0200)]
Changes: Start post-2.2.1 section

7 years agoconfigure.ac: Fix mis-detection of getrandom on Debian GNU/kFreeBSD (#50)
Sebastian Pipping [Sun, 18 Jun 2017 16:55:10 +0000 (18:55 +0200)]
configure.ac: Fix mis-detection of getrandom on Debian GNU/kFreeBSD (#50)

There is no such thing but we need to link (not just compile) to realize.

7 years agoFix sh syntax in configure.ac (#49)
spzeidler [Sun, 18 Jun 2017 12:30:22 +0000 (14:30 +0200)]
Fix sh syntax in configure.ac (#49)

The old '==' sh-is-not-C issue
It doesn't matter in bash, but some other sh don't like it, so it's a portability issue

7 years agoMerge branch 'master' of https://github.com/libexpat/libexpat R_2_2_1
Karl Waclawek [Sat, 17 Jun 2017 16:07:38 +0000 (12:07 -0400)]
Merge branch 'master' of https://github.com/libexpat/libexpat

7 years agoWindows release: Update README, remove VC++ 6.0 files from installer, fix runtests...
Karl Waclawek [Sat, 17 Jun 2017 16:05:48 +0000 (12:05 -0400)]
Windows release: Update README, remove VC++ 6.0 files from installer, fix runtests.vcxproj file.

7 years agoChanges: Add link for SipHash commits
Sebastian Pipping [Sat, 17 Jun 2017 15:44:32 +0000 (17:44 +0200)]
Changes: Add link for SipHash commits

7 years agoChanges: Add reference to SipHash ticket
Sebastian Pipping [Sat, 17 Jun 2017 10:04:41 +0000 (12:04 +0200)]
Changes: Add reference to SipHash ticket

7 years agowin32/expat.iss: Install AUTHORS file, too
Sebastian Pipping [Sat, 17 Jun 2017 10:02:29 +0000 (12:02 +0200)]
win32/expat.iss: Install AUTHORS file, too

7 years agoBump version, year, and ID for 2.2.1
Sebastian Pipping [Fri, 16 Jun 2017 23:56:13 +0000 (01:56 +0200)]
Bump version, year, and ID for 2.2.1

Also fill earliest release date

7 years agoChanges: Mention address leak, add MOX-??? references
Sebastian Pipping [Fri, 16 Jun 2017 23:44:00 +0000 (01:44 +0200)]
Changes: Mention address leak, add MOX-??? references

7 years agoBump version info from 7:2:6 to 7:3:6
Sebastian Pipping [Wed, 14 Jun 2017 11:53:40 +0000 (13:53 +0200)]
Bump version info from 7:2:6 to 7:3:6

7 years agoChanges: Mention SipHash
Sebastian Pipping [Fri, 16 Jun 2017 23:10:11 +0000 (01:10 +0200)]
Changes: Mention SipHash

7 years agoMerge branch 'siphash'
Sebastian Pipping [Fri, 16 Jun 2017 23:04:09 +0000 (01:04 +0200)]
Merge branch 'siphash'

7 years agoMerge branch 'cve-2017-9233'
Sebastian Pipping [Fri, 16 Jun 2017 23:01:17 +0000 (01:01 +0200)]
Merge branch 'cve-2017-9233'

7 years agoChanges: Add CVE-2017-9233 info to change log
Sebastian Pipping [Wed, 14 Jun 2017 12:09:58 +0000 (14:09 +0200)]
Changes: Add CVE-2017-9233 info to change log

7 years agoxmlparse.c: Fix external entity infinite loop bug (CVE-2017-9233)
Rhodri James [Wed, 14 Jun 2017 21:45:07 +0000 (23:45 +0200)]
xmlparse.c: Fix external entity infinite loop bug (CVE-2017-9233)

7 years agoTests: Cover external entity infinite loop bug
Rhodri James [Wed, 14 Jun 2017 21:44:45 +0000 (23:44 +0200)]
Tests: Cover external entity infinite loop bug

7 years agoChanges: Add call for help
Sebastian Pipping [Fri, 16 Jun 2017 22:56:27 +0000 (00:56 +0200)]
Changes: Add call for help

7 years agoAdd AUTHORS file
Sebastian Pipping [Fri, 16 Jun 2017 22:43:33 +0000 (00:43 +0200)]
Add AUTHORS file

$ git log | fgrep Author: | sed 's, <[^>]\+>,,' | sort | uniq -c | awk '{ if (int($1) >= 20) print }' | sed 's,.*: ,,' | sort

7 years agoAdd master readme as a symlink
Sebastian Pipping [Fri, 16 Jun 2017 19:30:01 +0000 (21:30 +0200)]
Add master readme as a symlink

7 years agoRemove amigaconfig.h and macconfig.h (issue #14)
Sebastian Pipping [Fri, 16 Jun 2017 19:06:16 +0000 (21:06 +0200)]
Remove amigaconfig.h and macconfig.h (issue #14)

7 years agoxmlparse.c: Polish ENTROPY_DEBUG
Sebastian Pipping [Fri, 16 Jun 2017 18:47:55 +0000 (20:47 +0200)]
xmlparse.c: Polish ENTROPY_DEBUG

The cast fixes a compile warning.

7 years agoMinGW: No longer ignore expat_config.h
Sebastian Pipping [Fri, 16 Jun 2017 18:38:52 +0000 (20:38 +0200)]
MinGW: No longer ignore expat_config.h

Previously, "#define XML_CONTEXT_BYTES 1024" from winconfig.h
would render --disable-xml-context ineffective.

7 years agoAddress MemorySanitizer mis-report on SYS_getrandom
Sebastian Pipping [Thu, 15 Jun 2017 21:13:47 +0000 (23:13 +0200)]
Address MemorySanitizer mis-report on SYS_getrandom

7 years agoChanges: Mention new error code XML_ERROR_INVALID_ARGUMENT
Sebastian Pipping [Thu, 15 Jun 2017 20:16:38 +0000 (22:16 +0200)]
Changes: Mention new error code XML_ERROR_INVALID_ARGUMENT

7 years agoIntroduce random-based SHA256 release identifier
Sebastian Pipping [Thu, 15 Jun 2017 20:04:54 +0000 (22:04 +0200)]
Introduce random-based SHA256 release identifier

Idea is to ease finding bundles of Expat in the wild in the future.
PS: If you need to bundle Expat, please keep your copy up to date.

7 years agocoverage.sh: Add Windows MinGW cross-compilation
Sebastian Pipping [Wed, 14 Jun 2017 20:41:44 +0000 (22:41 +0200)]
coverage.sh: Add Windows MinGW cross-compilation

7 years agoMake "make run-xmltest" work for MinGW cross-compilation
Sebastian Pipping [Wed, 14 Jun 2017 20:36:51 +0000 (22:36 +0200)]
Make "make run-xmltest" work for MinGW cross-compilation

7 years agocoverage.sh: Cover arc4random_buf with libbsd
Sebastian Pipping [Wed, 14 Jun 2017 16:31:05 +0000 (18:31 +0200)]
coverage.sh: Cover arc4random_buf with libbsd

7 years agocoverage.sh: Extract function _build_case for re-use
Sebastian Pipping [Wed, 14 Jun 2017 16:07:47 +0000 (18:07 +0200)]
coverage.sh: Extract function _build_case for re-use

7 years agoChanges: Mark SourceForge tickets for clarity
Sebastian Pipping [Wed, 14 Jun 2017 15:44:18 +0000 (17:44 +0200)]
Changes: Mark SourceForge tickets for clarity

7 years agoChanges: Fix indentation of a 2.2.1 item
Sebastian Pipping [Wed, 14 Jun 2017 16:01:42 +0000 (18:01 +0200)]
Changes: Fix indentation of a 2.2.1 item

7 years agoChanges: Mention commit 7e5b71b748491b6e459e5c9a1d090820f94544d8
Sebastian Pipping [Wed, 14 Jun 2017 15:40:04 +0000 (17:40 +0200)]
Changes: Mention commit 7e5b71b748491b6e459e5c9a1d090820f94544d8

7 years agotests/runtests.c: Address byte_character_handler unused variables
Sebastian Pipping [Tue, 13 Jun 2017 21:25:13 +0000 (23:25 +0200)]
tests/runtests.c: Address byte_character_handler unused variables

7 years agoxmlparse.c: Fix XML_Size/XML_Index cast mixup
Sebastian Pipping [Tue, 13 Jun 2017 21:10:08 +0000 (23:10 +0200)]
xmlparse.c: Fix XML_Size/XML_Index cast mixup

The "MAX = (type)-1" hack only works for unsigned types:
XML_Size is unsigned but XML_Index is not.
As the positive maximum of signed integers is about
half as big as that of their unsigned counterpart,
we divide by 2.

Example for 2 bit integers:
* signed: -2, -1, 0, 1 == 2^1-1
* unsigned: 0, 1, 2, 3 == 2^2-1

Fixing 4be2cb5afcc018d996f34bbbce6374b7befad47f

7 years agocoverage.sh: Fix "make check" error propagation
Sebastian Pipping [Tue, 13 Jun 2017 21:02:32 +0000 (23:02 +0200)]
coverage.sh: Fix "make check" error propagation

7 years agoMANIFEST: Add missing run.sh.in
Sebastian Pipping [Sun, 11 Jun 2017 20:45:22 +0000 (22:45 +0200)]
MANIFEST: Add missing run.sh.in

Second half of 49693bb768c431f4861c24fdf6cef7fab3c6351e

7 years agoMANIFEST: Drop pre-X Mac OS MPW Makefile (issue #14)
Sebastian Pipping [Sun, 11 Jun 2017 20:38:40 +0000 (22:38 +0200)]
MANIFEST: Drop pre-X Mac OS MPW Makefile (issue #14)

Second half of a39382bee5f4487e61f7cd9ea66a0b302b2b61c1

7 years agosiphash: Test implementation
Sebastian Pipping [Sat, 10 Jun 2017 22:03:28 +0000 (00:03 +0200)]
siphash: Test implementation

7 years agosiphash: Replace current hash algorithm by SipHash
Sebastian Pipping [Sat, 10 Jun 2017 20:18:24 +0000 (22:18 +0200)]
siphash: Replace current hash algorithm by SipHash

7 years agosiphash: Make siphash.h ready for C89 Expat
Sebastian Pipping [Sat, 10 Jun 2017 22:58:41 +0000 (00:58 +0200)]
siphash: Make siphash.h ready for C89 Expat

7 years agosiphash: Integrate into build system
Sebastian Pipping [Sat, 10 Jun 2017 23:12:58 +0000 (01:12 +0200)]
siphash: Integrate into build system

7 years agoAdd unmodified siphash-20121104.h by William Ahern as siphash.h
Sebastian Pipping [Sat, 10 Jun 2017 22:49:05 +0000 (00:49 +0200)]
Add unmodified siphash-20121104.h by William Ahern as siphash.h

7 years agoDrop pre-X Mac OS MPW Makefile (issue #14)
Sebastian Pipping [Sat, 10 Jun 2017 20:52:52 +0000 (22:52 +0200)]
Drop pre-X Mac OS MPW Makefile (issue #14)

7 years agoChanges: Add missing details for 2.2.1
Sebastian Pipping [Wed, 7 Jun 2017 21:28:13 +0000 (23:28 +0200)]
Changes: Add missing details for 2.2.1

7 years agoChanges: Mention commits of important 2.2.1 fixes
Sebastian Pipping [Wed, 7 Jun 2017 19:36:32 +0000 (21:36 +0200)]
Changes: Mention commits of important 2.2.1 fixes

7 years agoChanges: Improve classification/order of existing entries for 2.2.1
Sebastian Pipping [Wed, 7 Jun 2017 18:48:20 +0000 (20:48 +0200)]
Changes: Improve classification/order of existing entries for 2.2.1

7 years agoexamples: Unify expat.h include
Sebastian Pipping [Wed, 7 Jun 2017 18:27:02 +0000 (20:27 +0200)]
examples: Unify expat.h include

7 years agoexamples|tests|xmlwf: Drop AmigaOS 4.x include (issue #14)
Sebastian Pipping [Wed, 7 Jun 2017 18:24:21 +0000 (20:24 +0200)]
examples|tests|xmlwf: Drop AmigaOS 4.x include (issue #14)

7 years agoMerge branch 'better-entropy' (pull request #30)
Sebastian Pipping [Wed, 7 Jun 2017 18:18:50 +0000 (20:18 +0200)]
Merge branch 'better-entropy' (pull request #30)

7 years agoAvoid implicit declaration of function ‘syscall’ with -std=c89
Sebastian Pipping [Wed, 7 Jun 2017 18:13:54 +0000 (20:13 +0200)]
Avoid implicit declaration of function ‘syscall’ with -std=c89

7 years agoMerge branch 'crossdev-mingw'
Sebastian Pipping [Sun, 4 Jun 2017 16:13:30 +0000 (18:13 +0200)]
Merge branch 'crossdev-mingw'

7 years agoAdd run.sh wrapper to run test suite with Wine for MinGW
Sebastian Pipping [Sun, 4 Jun 2017 15:43:47 +0000 (17:43 +0200)]
Add run.sh wrapper to run test suite with Wine for MinGW

7 years agoMakefile.in: Add missing @EXEEXT@ to runtests for MinGW
Sebastian Pipping [Sun, 4 Jun 2017 15:25:23 +0000 (17:25 +0200)]
Makefile.in: Add missing @EXEEXT@ to runtests for MinGW

7 years agoconfigure.ac: Disable auto-detection of libbsd
Sebastian Pipping [Thu, 1 Jun 2017 18:40:36 +0000 (20:40 +0200)]
configure.ac: Disable auto-detection of libbsd

7 years agoexpat.h: Fix version hint on XML_ERROR_INVALID_ARGUMENT
Sebastian Pipping [Wed, 31 May 2017 21:43:57 +0000 (23:43 +0200)]
expat.h: Fix version hint on XML_ERROR_INVALID_ARGUMENT

Introduced at commit 768613f801020dee30a0583ec6cd77ec401d747f.

7 years agoDetect and support syscall(SYS_getrandom, [..]) as well
Sebastian Pipping [Wed, 31 May 2017 21:23:37 +0000 (23:23 +0200)]
Detect and support syscall(SYS_getrandom, [..]) as well

7 years agoMake EXPAT_ENTROPY_DEBUG=1 print entropy source and bytes
Sebastian Pipping [Wed, 31 May 2017 10:40:28 +0000 (12:40 +0200)]
Make EXPAT_ENTROPY_DEBUG=1 print entropy source and bytes

7 years agoMerge branch 'parent-hash-salt' (fixes #31)
Sebastian Pipping [Tue, 30 May 2017 19:35:40 +0000 (21:35 +0200)]
Merge branch 'parent-hash-salt' (fixes #31)

7 years agoMake hash salt setter/getter go up to the very top (issue #31)
Sebastian Pipping [Tue, 30 May 2017 18:37:03 +0000 (20:37 +0200)]
Make hash salt setter/getter go up to the very top (issue #31)

7 years agoDetect XML_UNICODE_WCHAR_T with sizeof(wchar_t) != 2 (issue #33)
Sebastian Pipping [Sun, 28 May 2017 22:03:02 +0000 (00:03 +0200)]
Detect XML_UNICODE_WCHAR_T with sizeof(wchar_t) != 2 (issue #33)

7 years agoDetect overflow from len=INT_MAX call to XML_Parse
Sebastian Pipping [Sun, 28 May 2017 19:57:37 +0000 (21:57 +0200)]
Detect overflow from len=INT_MAX call to XML_Parse

Relevant only when XML_CONTEXT_BYTES not defined

7 years agoReject negative length call to XML_Parse
Sebastian Pipping [Sun, 28 May 2017 19:35:12 +0000 (21:35 +0200)]
Reject negative length call to XML_Parse

7 years agoSet errorCode for XML_Parse on NULL parser
Sebastian Pipping [Sun, 28 May 2017 19:28:59 +0000 (21:28 +0200)]
Set errorCode for XML_Parse on NULL parser

Related to 56c75720c2115deb9358a95670be5f9dd5f6e945

7 years agoAddress unused variable warning (for XML_CONTEXT_BYTES not defined)
Sebastian Pipping [Sun, 28 May 2017 18:50:43 +0000 (20:50 +0200)]
Address unused variable warning (for XML_CONTEXT_BYTES not defined)

7 years agoFix sharing of hash salt across parsers (issue #31)
Sebastian Pipping [Sun, 28 May 2017 15:14:44 +0000 (17:14 +0200)]
Fix sharing of hash salt across parsers (issue #31)

This affects when XML_ExternalEntityParserCreate was called
prior to XML_Parse.

7 years agoAddress warning "initializer element is not computable at load time"
Sebastian Pipping [Sun, 28 May 2017 13:02:19 +0000 (15:02 +0200)]
Address warning "initializer element is not computable at load time"

7 years agoPull out shared variable and is-unused marker
Sebastian Pipping [Thu, 25 May 2017 19:53:16 +0000 (21:53 +0200)]
Pull out shared variable and is-unused marker

7 years agoAutoconf: Add --(with|without)-libbsd for bypassing auto-detection
Sebastian Pipping [Thu, 25 May 2017 18:58:34 +0000 (20:58 +0200)]
Autoconf: Add --(with|without)-libbsd for bypassing auto-detection

7 years agoChanges: Mention use of high quality entropy sources
Sebastian Pipping [Thu, 25 May 2017 17:28:15 +0000 (19:28 +0200)]
Changes: Mention use of high quality entropy sources

7 years agoPull parser instance address out of entropy equation to not leak that information
Sebastian Pipping [Thu, 25 May 2017 16:27:15 +0000 (18:27 +0200)]
Pull parser instance address out of entropy equation to not leak that information

7 years agoStart using arc4random_buf with BSD and libbsd
Sebastian Pipping [Thu, 25 May 2017 16:21:57 +0000 (18:21 +0200)]
Start using arc4random_buf with BSD and libbsd

7 years agoStart using getrandom for entropy extraction with glibc 2.25+
Sebastian Pipping [Thu, 25 May 2017 15:46:42 +0000 (17:46 +0200)]
Start using getrandom for entropy extraction with glibc 2.25+

7 years agoStart using RtlGenRandom for entropy extraction on WinXP and later
Sebastian Pipping [Thu, 25 May 2017 18:07:01 +0000 (20:07 +0200)]
Start using RtlGenRandom for entropy extraction on WinXP and later

7 years agoMerge branch 'underscore-win32' (remake of pull request #10)
Sebastian Pipping [Thu, 25 May 2017 13:32:09 +0000 (15:32 +0200)]
Merge branch 'underscore-win32' (remake of pull request #10)

7 years agoChanges: Adjust indentation
Sebastian Pipping [Thu, 25 May 2017 13:17:39 +0000 (15:17 +0200)]
Changes: Adjust indentation

7 years agoChanges: Document move from WIN32 to _WIN32
Sebastian Pipping [Thu, 25 May 2017 13:24:43 +0000 (15:24 +0200)]
Changes: Document move from WIN32 to _WIN32

7 years agoVisual Studio 20xx: No longer define WIN32
Sebastian Pipping [Thu, 25 May 2017 13:15:08 +0000 (15:15 +0200)]
Visual Studio 20xx: No longer define WIN32

7 years agoCMake: No longer define WIN32
Sebastian Pipping [Thu, 25 May 2017 13:13:10 +0000 (15:13 +0200)]
CMake: No longer define WIN32

7 years agoReplace WIN32 by _WIN32 in code
Sebastian Pipping [Thu, 25 May 2017 13:06:28 +0000 (15:06 +0200)]
Replace WIN32 by _WIN32 in code

7 years agoPrevent use of uninitialised variable
Rhodri James [Tue, 25 Apr 2017 14:15:56 +0000 (15:15 +0100)]
Prevent use of uninitialised variable

I don't believe the value of 'next' is actually used if it is not
set by the tokenizer, but this is very hard to prove.  For safety,
we give it a safe default value.

7 years agoValidate parser parameter to XML_UseParserAsHandlerArg
Sebastian Pipping [Wed, 24 May 2017 19:09:23 +0000 (21:09 +0200)]
Validate parser parameter to XML_UseParserAsHandlerArg

7 years agoMerge branch 'null-checks'
Sebastian Pipping [Wed, 24 May 2017 19:04:08 +0000 (21:04 +0200)]
Merge branch 'null-checks'

7 years agoMake XML_GetInputContext parameter validation more flexible
Sebastian Pipping [Wed, 24 May 2017 18:52:16 +0000 (20:52 +0200)]
Make XML_GetInputContext parameter validation more flexible

7 years agoValidate parser parameter to XML_DefaultCurrent
Rhodri James [Tue, 25 Apr 2017 17:48:16 +0000 (18:48 +0100)]
Validate parser parameter to XML_DefaultCurrent

7 years agoValidate parser parameter to XML_MemFree
Rhodri James [Tue, 25 Apr 2017 17:46:51 +0000 (18:46 +0100)]
Validate parser parameter to XML_MemFree

7 years agoValidate parser parameter to XML_MemRealloc
Rhodri James [Tue, 25 Apr 2017 17:45:39 +0000 (18:45 +0100)]
Validate parser parameter to XML_MemRealloc

7 years agoValidate parser parameter to XML_MemMalloc
Rhodri James [Tue, 25 Apr 2017 17:44:41 +0000 (18:44 +0100)]
Validate parser parameter to XML_MemMalloc

7 years agoValidate parser parameter to XML_FreeContentModel
Rhodri James [Tue, 25 Apr 2017 17:43:18 +0000 (18:43 +0100)]
Validate parser parameter to XML_FreeContentModel