]> granicus.if.org Git - libexpat/log
libexpat
7 years agoTest namespace parsing with allocation failures
Rhodri James [Tue, 31 Jan 2017 19:36:15 +0000 (19:36 +0000)]
Test namespace parsing with allocation failures

7 years agoTest allocation failures during external entity parsing
Rhodri James [Tue, 31 Jan 2017 19:06:33 +0000 (19:06 +0000)]
Test allocation failures during external entity parsing

7 years agoChanges: Add Rhodri James to special thanks
Sebastian Pipping [Tue, 14 Feb 2017 22:56:25 +0000 (23:56 +0100)]
Changes: Add Rhodri James to special thanks

7 years agoChanges: Document fix to issue #3
Sebastian Pipping [Tue, 14 Feb 2017 22:53:48 +0000 (23:53 +0100)]
Changes: Document fix to issue #3

7 years agoRemove unused variable and fix comment. No functional changes.
Rhodri James [Tue, 31 Jan 2017 18:06:50 +0000 (18:06 +0000)]
Remove unused variable and fix comment.  No functional changes.

7 years agoDon't free a partially allocated element type twice (issue #3)
Rhodri James [Tue, 31 Jan 2017 15:37:36 +0000 (15:37 +0000)]
Don't free a partially allocated element type twice (issue #3)

If memory allocation fails for default attributes of an element type
while copying a DTD, the element type itself was being freed.
Unfortunately it's already stored in the DTD by this point, so is
freed again when the DTD is destroyed.

7 years agoAdd a test for DTD duplication allocation failure
Rhodri James [Tue, 31 Jan 2017 15:34:30 +0000 (15:34 +0000)]
Add a test for DTD duplication allocation failure

7 years agoAdd a test case for external entity parser allocation failures.
Rhodri James [Mon, 30 Jan 2017 17:51:50 +0000 (17:51 +0000)]
Add a test case for external entity parser allocation failures.

7 years agoAdd a test case to cover allocation failures in parserCreate()
Rhodri James [Mon, 30 Jan 2017 16:03:23 +0000 (16:03 +0000)]
Add a test case to cover allocation failures in parserCreate()

7 years agoAdd qa.sh modes for library and application coverage stats
Rhodri James [Mon, 30 Jan 2017 15:27:54 +0000 (15:27 +0000)]
Add qa.sh modes for library and application coverage stats

7 years agoCHANGES: Extend special thanks
Sebastian Pipping [Sun, 20 Nov 2016 17:16:27 +0000 (18:16 +0100)]
CHANGES: Extend special thanks

7 years agoChanges: Document pull request #2
Sebastian Pipping [Sun, 20 Nov 2016 17:12:35 +0000 (18:12 +0100)]
Changes: Document pull request #2

7 years agoCMakeLists.txt: Resolve trailing whitespace
Sebastian Pipping [Sun, 20 Nov 2016 17:10:01 +0000 (18:10 +0100)]
CMakeLists.txt: Resolve trailing whitespace

7 years agoCMakeLists.txt: Rename BUILD_install to INSTALL
Sebastian Pipping [Sun, 20 Nov 2016 17:09:13 +0000 (18:09 +0100)]
CMakeLists.txt: Rename BUILD_install to INSTALL

8 years agoCMake: Add BUILD_install to make install optional
Tobias Taschner [Wed, 26 Oct 2016 19:48:34 +0000 (21:48 +0200)]
CMake: Add BUILD_install to make install optional

For easier integration in other projects via add_subdirectory() make the install() calls optional.

8 years agoCMake: Do not try building docs if MSVC (bug #534)
Sebastian Pipping [Mon, 15 Aug 2016 16:57:06 +0000 (18:57 +0200)]
CMake: Do not try building docs if MSVC (bug #534)

8 years agoExtend change log (issue #534)
Sebastian Pipping [Mon, 15 Aug 2016 16:48:14 +0000 (18:48 +0200)]
Extend change log (issue #534)

8 years agoCMake: Fix ninja support
Sebastian Pipping [Mon, 15 Aug 2016 16:39:28 +0000 (18:39 +0200)]
CMake: Fix ninja support

8 years agoCMake: Symptom-fix out-of-source builds
Sebastian Pipping [Mon, 15 Aug 2016 16:13:03 +0000 (18:13 +0200)]
CMake: Symptom-fix out-of-source builds

8 years agofix for #534
Sergei Nikulov [Mon, 15 Aug 2016 16:07:34 +0000 (18:07 +0200)]
fix for #534

8 years agoExtend change log
Sebastian Pipping [Fri, 12 Aug 2016 21:43:56 +0000 (23:43 +0200)]
Extend change log

8 years agoFix utf8_toUtf16 (bug #539)
Don Lewis [Fri, 12 Aug 2016 21:40:42 +0000 (23:40 +0200)]
Fix utf8_toUtf16 (bug #539)

8 years agoStart using -fno-strict-aliasing (bug #538)
Sebastian Pipping [Fri, 12 Aug 2016 13:45:05 +0000 (15:45 +0200)]
Start using -fno-strict-aliasing (bug #538)

8 years agoExtend change log for issue #540
Sebastian Pipping [Sat, 30 Jul 2016 14:54:50 +0000 (16:54 +0200)]
Extend change log for issue #540

8 years agoAddress -Wunused-parameter and -Wunused-function
Sebastian Pipping [Sat, 30 Jul 2016 14:50:32 +0000 (16:50 +0200)]
Address -Wunused-parameter and -Wunused-function

8 years agoMake Expat build on CloudABI
Ed Schouten [Sat, 30 Jul 2016 14:42:24 +0000 (16:42 +0200)]
Make Expat build on CloudABI

8 years agoChanges: Fix description of (conditions for) bug #539
Sebastian Pipping [Sun, 17 Jul 2016 20:34:02 +0000 (22:34 +0200)]
Changes: Fix description of (conditions for) bug #539

8 years agoChanges: Document fix to regression bug #539
Sebastian Pipping [Sun, 17 Jul 2016 18:28:54 +0000 (20:28 +0200)]
Changes: Document fix to regression bug #539

8 years agoFix regression bug #539 (needs -DXML_UNICODE)
Sebastian Pipping [Sun, 17 Jul 2016 18:22:29 +0000 (20:22 +0200)]
Fix regression bug #539 (needs -DXML_UNICODE)

Thanks to Andy Wang and Karl Waclawek!

8 years agoMove release date to 2016-06-21 R_2_2_0
Sebastian Pipping [Tue, 21 Jun 2016 12:58:38 +0000 (14:58 +0200)]
Move release date to 2016-06-21

8 years agoFixed versioning comment.
Karl Waclawek [Mon, 20 Jun 2016 20:43:12 +0000 (16:43 -0400)]
Fixed versioning comment.

8 years agoCMakeLists.txt: Exclude soversion config on Windows
Sebastian Pipping [Mon, 20 Jun 2016 16:47:11 +0000 (18:47 +0200)]
CMakeLists.txt: Exclude soversion config on Windows

8 years agoHandle XML_ParserCreate* NULL return
Sebastian Pipping [Sat, 18 Jun 2016 21:09:00 +0000 (23:09 +0200)]
Handle XML_ParserCreate* NULL return

Pointed out by Pascal Cuoq

8 years agoFix infinite loop
Sebastian Pipping [Sat, 18 Jun 2016 13:54:52 +0000 (15:54 +0200)]
Fix infinite loop

Regression from 30145890579e3e7fca548129260b2ac6a545d2ef

https://marcograss.github.io/security/android/chromium/2016/06/17/expat-xml-heap-overflow.html

8 years agodoc/xmlwf.1: Migrate from SGML to XML
Sebastian Pipping [Fri, 17 Jun 2016 23:21:50 +0000 (01:21 +0200)]
doc/xmlwf.1: Migrate from SGML to XML

8 years agoExtend .gitignore
Sebastian Pipping [Fri, 17 Jun 2016 22:28:55 +0000 (00:28 +0200)]
Extend .gitignore

8 years agoSet version 2.2.0/2016-06-18 where missing
Sebastian Pipping [Fri, 17 Jun 2016 21:52:19 +0000 (23:52 +0200)]
Set version 2.2.0/2016-06-18 where missing

8 years agohtdocs/index.html: Fix some HTML issues
Sebastian Pipping [Fri, 17 Jun 2016 21:56:18 +0000 (23:56 +0200)]
htdocs/index.html: Fix some HTML issues

8 years agohtdocs/index.html: Sync HTML change log
Sebastian Pipping [Fri, 17 Jun 2016 21:40:09 +0000 (23:40 +0200)]
htdocs/index.html: Sync HTML change log

8 years agoChanges: Adjust case
Sebastian Pipping [Fri, 17 Jun 2016 21:39:29 +0000 (23:39 +0200)]
Changes: Adjust case

8 years agoUpgraded setup files for Win32.
Karl Waclawek [Fri, 17 Jun 2016 19:04:39 +0000 (15:04 -0400)]
Upgraded setup files for Win32.

8 years agoAdded Visual Studio 2013 solution/project files. Will also work in Visual Studio...
Karl Waclawek [Fri, 17 Jun 2016 16:44:58 +0000 (12:44 -0400)]
Added Visual Studio 2013 solution/project files. Will also work in Visual Studio 2015 if VS 2013 is installed. Otherwise, open a "Visual Studio 2015 Developer Command Prompt" and execute "devenv.exe /upgrade expat.sln" in the expat directory to upgrade the main solution and project files (Tests have their own solutions).

8 years agoAddress VS2010 compile warning
Sebastian Pipping [Thu, 16 Jun 2016 15:19:21 +0000 (17:19 +0200)]
Address VS2010 compile warning

xmlparse.c(1893): warning C4244: 'return' : conversion from '__int64' to 'XML_Index', possible loss of data

Reported by tbeu <tc@tbeu.de>

8 years agoResolve COMPILING_FOR_WINDOWS (ex COMPILED_FROM_DSP) in favor of WIN32
Sebastian Pipping [Mon, 13 Jun 2016 15:03:43 +0000 (17:03 +0200)]
Resolve COMPILING_FOR_WINDOWS (ex COMPILED_FROM_DSP) in favor of WIN32

8 years agoFix MSVC compiler warning
tbeu [Mon, 6 Jun 2016 19:27:05 +0000 (21:27 +0200)]
Fix MSVC compiler warning

8 years agoqa.sh: "set -e" inside "|| exit 1"-ed subshell did not have any effect
Sebastian Pipping [Mon, 6 Jun 2016 20:47:50 +0000 (22:47 +0200)]
qa.sh: "set -e" inside "|| exit 1"-ed subshell did not have any effect

http://unix.stackexchange.com/questions/65532/why-does-set-e-not-work-inside/65564#65564

8 years agoUpdate copyright year
tbeu [Mon, 6 Jun 2016 19:31:24 +0000 (21:31 +0200)]
Update copyright year

8 years agoFix typos
tbeu [Mon, 6 Jun 2016 19:15:30 +0000 (21:15 +0200)]
Fix typos

8 years agoBump soversion, skipped one for 2.1.1
Sebastian Pipping [Sun, 5 Jun 2016 13:43:36 +0000 (15:43 +0200)]
Bump soversion, skipped one for 2.1.1

8 years agoCMake: Create .so.1 symlink, too
Sebastian Pipping [Sun, 5 Jun 2016 13:41:12 +0000 (15:41 +0200)]
CMake: Create .so.1 symlink, too

8 years agoHave CMake call "$(MAKE) -C doc xmlwf.1"
Sebastian Pipping [Sun, 5 Jun 2016 13:17:05 +0000 (15:17 +0200)]
Have CMake call "$(MAKE) -C doc xmlwf.1"

.. so that the man page is built if missing (e.g. for a Git clone)

8 years agodoc/Makefile: Do not leave nullbyte XMLWF.1 on error
Sebastian Pipping [Sun, 5 Jun 2016 13:14:14 +0000 (15:14 +0200)]
doc/Makefile: Do not leave nullbyte XMLWF.1 on error

8 years agoExtend change log
Sebastian Pipping [Sat, 4 Jun 2016 20:09:37 +0000 (22:09 +0200)]
Extend change log

8 years agoEnsure that unistd.h is included on Linux
Sebastian Pipping [Sat, 4 Jun 2016 20:07:22 +0000 (22:07 +0200)]
Ensure that unistd.h is included on Linux

(or anywhere except non-Cygwin Windows, to be precise)

Bug reported by László Böszörményi

8 years agoHandle lack of __func__ with ISO C90
Sebastian Pipping [Sat, 4 Jun 2016 20:00:16 +0000 (22:00 +0200)]
Handle lack of __func__ with ISO C90

Bug reported by László Böszörményi

8 years agoImprove autotools-related entries in upcoming release changes
Sebastian Pipping [Sat, 4 Jun 2016 15:37:39 +0000 (17:37 +0200)]
Improve autotools-related entries in upcoming release changes

8 years agoMention recently assigned CVEs CVE-2012-6702 and CVE-2016-5300 in plaintext change log
Sebastian Pipping [Sat, 4 Jun 2016 15:20:18 +0000 (17:20 +0200)]
Mention recently assigned CVEs CVE-2012-6702 and CVE-2016-5300 in plaintext change log

8 years agoSync plaintext changelog; HTML left to do
Sebastian Pipping [Fri, 3 Jun 2016 21:35:16 +0000 (23:35 +0200)]
Sync plaintext changelog; HTML left to do

8 years agoqa.sh: Merge callgraphs into one
Sebastian Pipping [Mon, 30 May 2016 18:56:00 +0000 (20:56 +0200)]
qa.sh: Merge callgraphs into one

8 years agoqa.sh: Add egypt support (callgraphs)
Sebastian Pipping [Mon, 30 May 2016 18:29:33 +0000 (20:29 +0200)]
qa.sh: Add egypt support (callgraphs)

8 years agoSync .gitignore
Sebastian Pipping [Sat, 28 May 2016 17:52:31 +0000 (19:52 +0200)]
Sync .gitignore

8 years agoCMake: Add soversion, support -DNO_SONAME=yes to bypass (issue #536)
Sebastian Pipping [Sat, 28 May 2016 17:38:59 +0000 (19:38 +0200)]
CMake: Add soversion, support -DNO_SONAME=yes to bypass (issue #536)

8 years agoMerge branch 'minbpc'
Sebastian Pipping [Wed, 25 May 2016 17:15:29 +0000 (19:15 +0200)]
Merge branch 'minbpc'

8 years agoExtract macros from end-of-input checking
Sebastian Pipping [Tue, 24 May 2016 22:26:12 +0000 (00:26 +0200)]
Extract macros from end-of-input checking

8 years agoTake into account that CHAR_MATCHES may read >1 bytes
Sebastian Pipping [Tue, 24 May 2016 21:11:29 +0000 (23:11 +0200)]
Take into account that CHAR_MATCHES may read >1 bytes

8 years agoTake into account that BYTE_TYPE may read >1 bytes
Sebastian Pipping [Tue, 24 May 2016 20:26:58 +0000 (22:26 +0200)]
Take into account that BYTE_TYPE may read >1 bytes

8 years agoqa.sh: Add ncc/nccnav support
Sebastian Pipping [Tue, 24 May 2016 18:34:07 +0000 (20:34 +0200)]
qa.sh: Add ncc/nccnav support

8 years agoqa.sh: Polish and make more flexible
Sebastian Pipping [Tue, 24 May 2016 18:33:13 +0000 (20:33 +0200)]
qa.sh: Polish and make more flexible

8 years agoFix uninitialized read of size 1 in little2_updatePosition
Sebastian Pipping [Fri, 13 May 2016 20:40:15 +0000 (22:40 +0200)]
Fix uninitialized read of size 1 in little2_updatePosition

Reported by Pascal Cuoq

Valgrind's view:
==4416== Conditional jump or move depends on uninitialised value(s)
==4416==    at 0x41F187: little2_updatePosition (xmltok_impl.c:1748)
==4416==    by 0x405F85: XML_GetCurrentColumnNumber (xmlparse.c:1931)
==4416==    by 0x402F7B: reportError (xmlfile.c:67)
==4416==    by 0x403041: processFile (xmlfile.c:84)
==4416==    by 0x403752: filemap (unixfilemap.c:61)
==4416==    by 0x403523: XML_ProcessFile (xmlfile.c:239)
==4416==    by 0x402EBC: main (xmlwf.c:847)

8 years agoMerge branch 'improve-partial-utf8-handling'
Sebastian Pipping [Fri, 20 May 2016 20:46:51 +0000 (22:46 +0200)]
Merge branch 'improve-partial-utf8-handling'

8 years agoFix UTF-8 auto alignment
Sebastian Pipping [Fri, 20 May 2016 20:28:18 +0000 (22:28 +0200)]
Fix UTF-8 auto alignment

8 years agoCover UTF-8 limit correction; some tests fail
Sebastian Pipping [Fri, 20 May 2016 20:20:19 +0000 (22:20 +0200)]
Cover UTF-8 limit correction; some tests fail

Failing tests are:
[-] UTF-8 case  3: Expected movement by -1 chars, actually moved by  0 chars: "\xdf"
[-] UTF-8 case  4: Expected movement by  0 chars, actually moved by -1 chars: "\xdf\xbf"
[-] UTF-8 case  5: Expected movement by -1 chars, actually moved by  0 chars: "\xef"
[-] UTF-8 case  6: Expected movement by -2 chars, actually moved by -1 chars: "\xef\xbf"
[-] UTF-8 case  7: Expected movement by  0 chars, actually moved by -2 chars: "\xef\xbf\xbf"
[-] UTF-8 case  8: Expected movement by -1 chars, actually moved by  0 chars: "\xf7"
[-] UTF-8 case  9: Expected movement by -2 chars, actually moved by -1 chars: "\xf7\xbf"
[-] UTF-8 case 10: Expected movement by -3 chars, actually moved by -2 chars: "\xf7\xbf\xbf"
[-] UTF-8 case 11: Expected movement by  0 chars, actually moved by -3 chars: "\xf7\xbf\xbf\xbf"

8 years agoExtract function align_limit_to_full_utf8_characters
Sebastian Pipping [Fri, 20 May 2016 18:33:39 +0000 (20:33 +0200)]
Extract function align_limit_to_full_utf8_characters

8 years agoMerge branch 'cve-2016-0718-fix-2-2-1'
Sebastian Pipping [Tue, 17 May 2016 19:08:21 +0000 (21:08 +0200)]
Merge branch 'cve-2016-0718-fix-2-2-1'

Conflicts:
  expat/lib/xmltok.c

8 years agoDo not compare an out-of-bounds pointer. See https://lwn.net/Articles/278137/
Pascal Cuoq [Sun, 15 May 2016 18:05:50 +0000 (20:05 +0200)]
Do not compare an out-of-bounds pointer. See https://lwn.net/Articles/278137/

8 years agoAvoid undefined behavior when computing larger blockSize. The compiler might reason...
Pascal Cuoq [Sun, 15 May 2016 17:11:55 +0000 (19:11 +0200)]
Avoid undefined behavior when computing larger blockSize. The compiler might reason that (end - start)*2 is negative only if (end - start) is negative, see https://godbolt.org/g/wVEoTM

8 years agoAvoid relying on undefined behavior in CVE-2015-1283 fix. It does not really work...
Pascal Cuoq [Sun, 15 May 2016 07:05:46 +0000 (09:05 +0200)]
Avoid relying on undefined behavior in CVE-2015-1283 fix. It does not really work: https://godbolt.org/g/Zl8gdF

8 years agoMakefile.in: Extend target "qa"
Sebastian Pipping [Sun, 15 May 2016 12:11:11 +0000 (14:11 +0200)]
Makefile.in: Extend target "qa"

8 years agoFix left shift signed overflow
Sebastian Pipping [Sun, 15 May 2016 11:02:40 +0000 (13:02 +0200)]
Fix left shift signed overflow

lib/xmltok.c:1407:11: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
lib/xmltok.c:1409:16: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'

8 years agoMakefile.in: Respect CXXFLAGS if given
Sebastian Pipping [Sun, 15 May 2016 11:50:06 +0000 (13:50 +0200)]
Makefile.in: Respect CXXFLAGS if given

8 years agoAdded suffix "d" to lib/dll to differentiate Debug from Release output so they don...
Björn Lindahl [Sat, 14 May 2016 16:56:36 +0000 (18:56 +0200)]
Added suffix "d" to lib/dll to differentiate Debug from Release output so they don't overwrite each other.
Fixes #323

8 years agoNever hide official symbols (for -fvisibility=hidden)
Sebastian Pipping [Wed, 11 May 2016 18:04:17 +0000 (20:04 +0200)]
Never hide official symbols (for -fvisibility=hidden)

Based on expat-visibility.patch by
Cristian Rodríguez <crrodriguez@opensuse.org>

8 years agoAnnotate memory allocators for GCC
Cristian Rodríguez [Wed, 11 May 2016 17:55:19 +0000 (19:55 +0200)]
Annotate memory allocators for GCC

8 years agoAddress all "unused parameter" warnings
Sebastian Pipping [Sat, 7 May 2016 14:45:58 +0000 (16:45 +0200)]
Address all "unused parameter" warnings

8 years agodoc/Makefile: Resolve use of "$<" for bmake
Sebastian Pipping [Fri, 6 May 2016 18:59:17 +0000 (20:59 +0200)]
doc/Makefile: Resolve use of "$<" for bmake

8 years agoDo not use GNU make extension
Ryo ONODERA [Fri, 6 May 2016 19:01:48 +0000 (21:01 +0200)]
Do not use GNU make extension

8 years agoFix "make install" for Git clone
Sebastian Pipping [Fri, 6 May 2016 18:54:50 +0000 (20:54 +0200)]
Fix "make install" for Git clone

8 years agoMakefile: Add target "qa"
Sebastian Pipping [Fri, 6 May 2016 01:14:16 +0000 (03:14 +0200)]
Makefile: Add target "qa"

8 years agoComplete XmlConvert return value handling
Sebastian Pipping [Sun, 1 May 2016 21:57:49 +0000 (23:57 +0200)]
Complete XmlConvert return value handling

8 years agoDo not grow pool to out-of-memory for incomplete input
Sebastian Pipping [Sun, 1 May 2016 21:55:02 +0000 (23:55 +0200)]
Do not grow pool to out-of-memory for incomplete input

8 years agoMake converters tell state on termination (v3)
Sebastian Pipping [Sun, 1 May 2016 21:51:26 +0000 (23:51 +0200)]
Make converters tell state on termination (v3)

8 years agoPrevent out-of-bounds access in text conversion
Sebastian Pipping [Sun, 1 May 2016 21:40:05 +0000 (23:40 +0200)]
Prevent out-of-bounds access in text conversion

* big2_toUtf8
* little2_toUtf8
* utf8_toUtf8
* utf8_toUtf16

8 years agoFix two integer overflows
Gustavo Grieco [Sun, 1 May 2016 22:35:34 +0000 (00:35 +0200)]
Fix two integer overflows

8 years agoFix overflow (v2)
Karl Waclawek [Sun, 1 May 2016 22:02:44 +0000 (00:02 +0200)]
Fix overflow (v2)

(Some post-processing by Sebastian Pipping)

8 years agoHave "make run-xmltest" report on expected output
Sebastian Pipping [Sun, 1 May 2016 14:01:51 +0000 (16:01 +0200)]
Have "make run-xmltest" report on expected output

8 years agoFix "make run-xmltest" more
Sebastian Pipping [Sun, 1 May 2016 13:59:23 +0000 (15:59 +0200)]
Fix "make run-xmltest" more

8 years agoFix "make run-xmltest"
Sebastian Pipping [Sat, 30 Apr 2016 19:11:02 +0000 (21:11 +0200)]
Fix "make run-xmltest"

8 years agoTests: Cover CDATA sections
Sebastian Pipping [Thu, 31 Mar 2016 18:46:46 +0000 (20:46 +0200)]
Tests: Cover CDATA sections

8 years agoTests: Parse XML one byte at a time
Sebastian Pipping [Thu, 31 Mar 2016 16:13:51 +0000 (18:13 +0200)]
Tests: Parse XML one byte at a time

8 years agoSync change log
Sebastian Pipping [Mon, 28 Mar 2016 20:23:43 +0000 (22:23 +0200)]
Sync change log