]> granicus.if.org Git - libexpat/log
libexpat
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 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

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

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

7 years agoValidate parameters to XML_GetInputContext
Rhodri James [Tue, 25 Apr 2017 17:32:34 +0000 (18:32 +0100)]
Validate parameters to XML_GetInputContext

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

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

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

7 years agoValidate parser parameter for XML_GetParsingStatus
Rhodri James [Tue, 25 Apr 2017 17:18:57 +0000 (18:18 +0100)]
Validate parser parameter for XML_GetParsingStatus

7 years agoValidate parser parameter for XML_ResumeParser
Rhodri James [Tue, 25 Apr 2017 17:17:36 +0000 (18:17 +0100)]
Validate parser parameter for XML_ResumeParser

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

7 years agoValidate parser parameter for XML_GetBuffer
Rhodri James [Tue, 25 Apr 2017 17:14:52 +0000 (18:14 +0100)]
Validate parser parameter for XML_GetBuffer

7 years agoValidate parser parameter for XML_ParseBuffer
Rhodri James [Tue, 25 Apr 2017 17:13:36 +0000 (18:13 +0100)]
Validate parser parameter for XML_ParseBuffer

7 years agoValidate "parser" and "s" parameters to XML_Parse
Rhodri James [Tue, 25 Apr 2017 17:10:58 +0000 (18:10 +0100)]
Validate "parser" and "s" parameters to XML_Parse

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

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

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

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

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

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

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

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

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

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

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

7 years agoValidate parser parameter in XML_SetEndNamespaceDeclHandler
Rhodri James [Tue, 25 Apr 2017 16:38:34 +0000 (17:38 +0100)]
Validate parser parameter in XML_SetEndNamespaceDeclHandler

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

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

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

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

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

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

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

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

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

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

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

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

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