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

8 years agoAddress warning "missing initializer for field"
Sebastian Pipping [Mon, 28 Mar 2016 19:35:55 +0000 (21:35 +0200)]
Address warning "missing initializer for field"

8 years agoAddress "comparison between signed and unsigned integer" warnings
Sebastian Pipping [Mon, 28 Mar 2016 19:24:36 +0000 (21:24 +0200)]
Address "comparison between signed and unsigned integer" warnings

8 years agoAddress warnings on const correctness
Sebastian Pipping [Mon, 28 Mar 2016 19:18:29 +0000 (21:18 +0200)]
Address warnings on const correctness

8 years agoMerge branch 'resolve-srand'
Sebastian Pipping [Mon, 28 Mar 2016 18:42:31 +0000 (20:42 +0200)]
Merge branch 'resolve-srand'

8 years agoWindows: Handling missing getpid and headers
Sebastian Pipping [Mon, 28 Mar 2016 17:21:44 +0000 (19:21 +0200)]
Windows: Handling missing getpid and headers

8 years agoUse GetSystemTimeAsFileTime on Non-Cygwin-Windows with no gettimeofday
Sebastian Pipping [Mon, 28 Mar 2016 14:33:49 +0000 (16:33 +0200)]
Use GetSystemTimeAsFileTime on Non-Cygwin-Windows with no gettimeofday

8 years agoDefine COMPILING_FOR_WINDOWS with CMake on Windows
Sebastian Pipping [Mon, 28 Mar 2016 16:08:58 +0000 (18:08 +0200)]
Define COMPILING_FOR_WINDOWS with CMake on Windows

8 years agoTurn COMPILED_FROM_DSP into COMPILING_FOR_WINDOWS
Sebastian Pipping [Mon, 28 Mar 2016 16:17:45 +0000 (18:17 +0200)]
Turn COMPILED_FROM_DSP into COMPILING_FOR_WINDOWS

.. since it is used with that semantic by now

8 years agoUse a prime that fits 32bits on 32bit platforms
Sebastian Pipping [Mon, 21 Mar 2016 19:05:27 +0000 (20:05 +0100)]
Use a prime that fits 32bits on 32bit platforms

Bug reported by Yann Droneaud, thanks!
https://bugzilla.redhat.com/show_bug.cgi?id=1197087#c21

8 years agoExtract entropy from XML_Parser address
Sebastian Pipping [Mon, 21 Mar 2016 18:56:05 +0000 (19:56 +0100)]
Extract entropy from XML_Parser address

Idea by Yann Droneaud, thanks!
https://bugzilla.redhat.com/show_bug.cgi?id=1197087#c21

8 years agoExtract method gather_time_entropy
Sebastian Pipping [Sun, 20 Mar 2016 19:26:27 +0000 (20:26 +0100)]
Extract method gather_time_entropy

8 years agoResolve call to srand, use more entropy
Sebastian Pipping [Wed, 16 Mar 2016 14:30:12 +0000 (15:30 +0100)]
Resolve call to srand, use more entropy

Since commit e3e81a6d9f0885ea02d3979151c358f314bf3d6d
(released with Expat 2.1.0) Expat called srand by itself
from inside generate_hash_secret_salt for an instance
of XML_Parser if XML_SetHashSalt was either (a) not called
for that instance or if (b) salt 0 was passed to XML_SetHashSalt
prior to parsing.  That call to srand passed (rather litle)
entropy extracted from the current time as a seed for srand.

That call to srand (1) broke repeatability for code calling
srand with a non-random seed prior to parsing with Expat,
and (2) resulted in a rather small set of hashing salts in
Expat in total.

For a short- to mid-term fix, the new approach avoids calling
srand altogether, extracts more entropy out of the clock and
adds some additional entropy from the process ID, too.

For a long term fix, we may want to read sizeof(long) bytes
from a source like getrandom(..) on Linux, and from similar
sources on other supported architectures.

https://bugzilla.redhat.com/show_bug.cgi?id=1197087

8 years agoMerge branch 'patch-90'
Sebastian Pipping [Mon, 14 Mar 2016 18:12:52 +0000 (19:12 +0100)]
Merge branch 'patch-90'

8 years agoFix VS2010 compilation
tbeu [Sat, 12 Mar 2016 19:16:39 +0000 (20:16 +0100)]
Fix VS2010 compilation

Avoid C99 style declaration (MSVC)

8 years agoUpdated copyright year in Win32 setup script.
Karl Waclawek [Sat, 12 Mar 2016 21:12:42 +0000 (16:12 -0500)]
Updated copyright year in Win32 setup script.

8 years agoFix for BUILD_shared=OFF case on MSVC
Sergei Nikulov [Sat, 12 Mar 2016 16:12:25 +0000 (17:12 +0100)]
Fix for BUILD_shared=OFF case on MSVC

8 years agoCMakeLists.txt: Move code for upcoming change
Sebastian Pipping [Sat, 12 Mar 2016 16:09:47 +0000 (17:09 +0100)]
CMakeLists.txt: Move code for upcoming change

8 years agoFix source code permissions
Sebastian Pipping [Sat, 12 Mar 2016 04:21:28 +0000 (05:21 +0100)]
Fix source code permissions

Files had executable flag turn on, previously.
https://bugzilla.redhat.com/show_bug.cgi?id=1247348

8 years agoFill release date R_2_1_1
Sebastian Pipping [Sat, 12 Mar 2016 03:21:09 +0000 (04:21 +0100)]
Fill release date

8 years agomake-release.sh: Move from gzip to bzip2
Sebastian Pipping [Sat, 12 Mar 2016 03:04:24 +0000 (04:04 +0100)]
make-release.sh: Move from gzip to bzip2

8 years agohtdocs/index.html: Mention Git before CVS
Sebastian Pipping [Sat, 12 Mar 2016 02:33:57 +0000 (03:33 +0100)]
htdocs/index.html: Mention Git before CVS

8 years agohtdocs/index.html: Fix broken SF.net links
Sebastian Pipping [Sat, 12 Mar 2016 02:31:55 +0000 (03:31 +0100)]
htdocs/index.html: Fix broken SF.net links

8 years agoexamples/elements.c: Address compile warning on sign mismatch
Sebastian Pipping [Sat, 12 Mar 2016 01:59:53 +0000 (02:59 +0100)]
examples/elements.c: Address compile warning on sign mismatch

examples/elements.c: In function ‘main’:
examples/elements.c:54:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     done = len < sizeof(buf);
                ^

8 years agoMention issue #502 in 2.1.1 change log
Sebastian Pipping [Sat, 12 Mar 2016 01:57:41 +0000 (02:57 +0100)]
Mention issue #502 in 2.1.1 change log

8 years agoFix potential null pointer dereference (issue #502)
Gaurav [Sat, 12 Mar 2016 01:53:04 +0000 (02:53 +0100)]
Fix potential null pointer dereference (issue #502)

8 years agoReplace caddr_t by "void *" for -std=c99 (issue #506)
Sebastian Pipping [Sat, 12 Mar 2016 01:41:00 +0000 (02:41 +0100)]
Replace caddr_t by "void *" for -std=c99 (issue #506)

8 years agoRemove pre-2.0.0 leftovers of using "check" unit testing library
Gilles Espinasse [Sat, 12 Mar 2016 01:31:29 +0000 (02:31 +0100)]
Remove pre-2.0.0 leftovers of using "check" unit testing library

8 years agoAddress XML_Parse return type mis-match warning (issue #512)
Sebastian Pipping [Sat, 12 Mar 2016 01:07:50 +0000 (02:07 +0100)]
Address XML_Parse return type mis-match warning (issue #512)

(Function XML_Parse returns enum XML_Status, not enum XML_Error.)

8 years agolib/libexpat*.def: Fix version in comment
Sebastian Pipping [Sat, 12 Mar 2016 00:08:32 +0000 (01:08 +0100)]
lib/libexpat*.def: Fix version in comment

8 years agoBump version to 2.1.1
Sebastian Pipping [Wed, 2 Mar 2016 17:59:36 +0000 (18:59 +0100)]
Bump version to 2.1.1

8 years agoWrite 2.1.1 change log
Sebastian Pipping [Wed, 2 Mar 2016 17:44:13 +0000 (18:44 +0100)]
Write 2.1.1 change log

8 years agodoc/xmlwf.1: Generate from sources using docbook2X
Sebastian Pipping [Wed, 9 Mar 2016 19:33:46 +0000 (20:33 +0100)]
doc/xmlwf.1: Generate from sources using docbook2X

As aside effect the mistaken content

  BUGS
    According to the W3C standard, an XML file without a
    declaration at the beginning is not considered well-formed.
    However, xmlwf allows this to pass.

disappears from the man page.  This is related to bug 470
https://sourceforge.net/p/expat/bugs/470/ or
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=412786
in Debian.

8 years agodoc/xmlwf.sgml: Address GROFF issue
Ardo van Rangelrooij [Fri, 11 Mar 2016 22:57:13 +0000 (23:57 +0100)]
doc/xmlwf.sgml: Address GROFF issue

GROFF expects a macro name after a leading point. So remove
the linebreak and avoid the warning.

8 years agodoc/xmlwf.sgml: Fix typos
Sebastian Pipping [Fri, 11 Mar 2016 22:32:11 +0000 (23:32 +0100)]
doc/xmlwf.sgml: Fix typos

This is backport of commit 4d84c6e89720523161031f3515adf35d1b07e156
from doc/xmlwf.1 to doc/xmwlf.sgml

8 years agoFix RPM .spec file
Sebastian Pipping [Wed, 2 Mar 2016 18:20:45 +0000 (19:20 +0100)]
Fix RPM .spec file

8 years agoMakefile.in: Call libtool with --verbose for Debian
Sebastian Pipping [Wed, 2 Mar 2016 17:09:57 +0000 (18:09 +0100)]
Makefile.in: Call libtool with --verbose for Debian

8 years agoInstall expat_config.h as well
Raphael Bossek [Wed, 2 Mar 2016 17:06:41 +0000 (18:06 +0100)]
Install expat_config.h as well

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=302191

8 years agomake-release.sh: Move from Git to CVS
Sebastian Pipping [Wed, 2 Mar 2016 17:00:43 +0000 (18:00 +0100)]
make-release.sh: Move from Git to CVS

8 years agoCMakeLists.txt: Align binary locations with Autotools
Sebastian Pipping [Wed, 2 Mar 2016 15:36:32 +0000 (16:36 +0100)]
CMakeLists.txt: Align binary locations with Autotools

Target "xmlwf" even collided with the source folder of the
same name, previously:

$ cmake . && make
...
[ 82%] Linking C executable xmlwf
.../ld: cannot open output file xmlwf: Is a directory
collect2: error: ld returned 1 exit status
...

8 years agoAdd CMake things to .gitignore
Sebastian Pipping [Wed, 2 Mar 2016 15:14:17 +0000 (16:14 +0100)]
Add CMake things to .gitignore

8 years agoxmlwf: Sync usage help with man page and code
Sebastian Pipping [Wed, 2 Mar 2016 12:53:18 +0000 (13:53 +0100)]
xmlwf: Sync usage help with man page and code

8 years agoCVE-2015-1283 Sanity check size calculations. r=peterv, a=abillings
Eric Rahm [Wed, 2 Mar 2016 12:31:21 +0000 (13:31 +0100)]
CVE-2015-1283 Sanity check size calculations. r=peterv, a=abillings

https://sourceforge.net/p/expat/bugs/528/

8 years agoExtend .gitignore
Sebastian Pipping [Wed, 2 Mar 2016 12:24:13 +0000 (13:24 +0100)]
Extend .gitignore

8 years agobuildconf.sh: Create missing conftools/install-sh
Sebastian Pipping [Wed, 2 Mar 2016 12:19:06 +0000 (13:19 +0100)]
buildconf.sh: Create missing conftools/install-sh

Otherwise configure will fail with:
configure: error: cannot find install-sh, install.sh, or shtool in conftools "."/conftools

8 years agobuildconf.sh: Fix variable mis-nomer/collision
Sebastian Pipping [Wed, 2 Mar 2016 12:13:48 +0000 (13:13 +0100)]
buildconf.sh: Fix variable mis-nomer/collision

8 years agoRename configure.in to .ac
Sebastian Pipping [Wed, 2 Mar 2016 11:55:49 +0000 (12:55 +0100)]
Rename configure.in to .ac

.. as requested by aclocal:
aclocal-1.15: warning: autoconf input should be named 'configure.ac', not 'configure.in'

12 years agoFix for issue #3526620.
Karl Waclawek [Tue, 15 May 2012 00:28:15 +0000 (00:28 +0000)]
Fix for issue #3526620.

12 years agoFix for issue #3522658.
Karl Waclawek [Sun, 6 May 2012 00:10:00 +0000 (00:10 +0000)]
Fix for issue #3522658.

12 years agoupdate news for www.libexpat.org
Fred L. Drake, Jr. [Sat, 14 Apr 2012 19:56:38 +0000 (19:56 +0000)]
update news for www.libexpat.org

12 years agofix typo
Fred L. Drake, Jr. [Sat, 14 Apr 2012 19:51:29 +0000 (19:51 +0000)]
fix typo

12 years agoFinal release notes. R_2_1_0
Karl Waclawek [Sat, 24 Mar 2012 19:06:25 +0000 (19:06 +0000)]
Final release notes.

12 years agoChanged version of XML test suite used to 20080827.
Karl Waclawek [Sun, 18 Mar 2012 22:18:10 +0000 (22:18 +0000)]
Changed version of XML test suite used to 20080827.

12 years agoTypo in README fixed.
Karl Waclawek [Sun, 11 Mar 2012 05:54:36 +0000 (05:54 +0000)]
Typo in README fixed.

12 years agoUpdated Changes for release 2.1.0.
Karl Waclawek [Sun, 11 Mar 2012 05:19:09 +0000 (05:19 +0000)]
Updated Changes for release 2.1.0.

12 years agoFix for bug #3500861 did not work properly, fixed the fix by applying
Karl Waclawek [Sun, 11 Mar 2012 05:13:12 +0000 (05:13 +0000)]
Fix for bug #3500861 did not work properly, fixed the fix by applying
the setContext() call only to the root parser.
Also added a make target to run the benchmark - it relies on the testdata
module being present at the same location as in the repository.

12 years agoDocumented new features for release 2.1.0.
Karl Waclawek [Sat, 10 Mar 2012 18:27:17 +0000 (18:27 +0000)]
Documented new features for release 2.1.0.

12 years agoFix for bug #3500861 - setContext() called before hash salt was set.
Karl Waclawek [Sat, 10 Mar 2012 17:40:30 +0000 (17:40 +0000)]
Fix for bug #3500861 - setContext() called before hash salt was set.

12 years agoRelease preparations.
Karl Waclawek [Mon, 5 Mar 2012 14:52:54 +0000 (14:52 +0000)]
Release preparations.

12 years agoAdded CMake build system.
Karl Waclawek [Mon, 5 Mar 2012 14:38:22 +0000 (14:38 +0000)]
Added CMake build system.

12 years agoWin32 preparations for release.
Karl Waclawek [Sun, 4 Mar 2012 15:53:13 +0000 (15:53 +0000)]
Win32 preparations for release.

12 years agoPreparing for release 2.1.0.
Karl Waclawek [Sun, 4 Mar 2012 04:00:51 +0000 (04:00 +0000)]
Preparing for release 2.1.0.

12 years ago- Added check for CXX compiler to configure.in, to make the tests compile
Karl Waclawek [Sat, 3 Mar 2012 23:45:53 +0000 (23:45 +0000)]
- Added check for CXX compiler to configure.in, to make the tests compile
- Fixed invalid pointer cast (on 64bit systems) in runtests.c

12 years agoRelease preparations.
Karl Waclawek [Sat, 3 Mar 2012 22:02:09 +0000 (22:02 +0000)]
Release preparations.

12 years agoRelease preparations.
Karl Waclawek [Sat, 3 Mar 2012 21:47:56 +0000 (21:47 +0000)]
Release preparations.

12 years agoRelease preparations.
Karl Waclawek [Sat, 3 Mar 2012 21:39:46 +0000 (21:39 +0000)]
Release preparations.

12 years agoRelease preparations.
Karl Waclawek [Sat, 3 Mar 2012 21:37:14 +0000 (21:37 +0000)]
Release preparations.

12 years agoupdated manifest for release builds
Karl Waclawek [Sat, 3 Mar 2012 21:14:56 +0000 (21:14 +0000)]
updated manifest for release builds

12 years ago- Fix for bug # 3496608 (Hash DOS attack)
Karl Waclawek [Sat, 3 Mar 2012 19:08:02 +0000 (19:08 +0000)]
- Fix for bug # 3496608 (Hash DOS attack)
- Added patch # 3446384 (byte offsets for attr names and values)
- Fix for bug # 3206497 (unitialized memory returned from XML_Parse)

12 years agoChanges to the build files:
Karl Waclawek [Sat, 3 Mar 2012 18:35:54 +0000 (18:35 +0000)]
Changes to the build files:
- replaced the contents of buildconf.sh with instructions to run "autoreconf -fvi")
- some build files were removed, like config.guess, config.sub and install-sh,
  as autoreconf will re-create them.
- clean-up modified to remove files that autoreconf re-created

12 years agoApplied patch #3120699 with modifications.
Karl Waclawek [Sun, 26 Feb 2012 14:36:31 +0000 (14:36 +0000)]
Applied patch #3120699 with modifications.

12 years agoAdded Windows project files (same VC++ 6.0 format as the others) and
Karl Waclawek [Tue, 21 Feb 2012 03:49:47 +0000 (03:49 +0000)]
Added Windows project files (same VC++ 6.0 format as the others) and
modified minicheck.h to build under Windows.

12 years agoModified Windows project files to import properly into Visual Studio 2010.
Karl Waclawek [Tue, 21 Feb 2012 03:45:40 +0000 (03:45 +0000)]
Modified Windows project files to import properly into Visual Studio 2010.

12 years agoApplied path #3010222 as fix for issue #3010819.
Karl Waclawek [Tue, 21 Feb 2012 02:59:51 +0000 (02:59 +0000)]
Applied path #3010222 as fix for issue #3010819.

12 years agoFix for issues #2884086 and #2815947.
Karl Waclawek [Tue, 21 Feb 2012 02:50:08 +0000 (02:50 +0000)]
Fix for issues #2884086 and #2815947.

12 years agoModified Windows project files to import properly into Visual Studio 2010.
Karl Waclawek [Tue, 21 Feb 2012 02:45:06 +0000 (02:45 +0000)]
Modified Windows project files to import properly into Visual Studio 2010.

12 years agoUpdated Windows project files to import properly in Visual Studio 2010.
Karl Waclawek [Tue, 21 Feb 2012 02:16:29 +0000 (02:16 +0000)]
Updated Windows project files to import properly in Visual Studio 2010.

14 years agoFix for bug ID 2958794.
Karl Waclawek [Thu, 25 Feb 2010 18:35:36 +0000 (18:35 +0000)]
Fix for bug ID 2958794.

15 years agoRevised fix for issue# 2894085: differentiated between two cases where the next point...
Karl Waclawek [Tue, 29 Dec 2009 18:42:05 +0000 (18:42 +0000)]
Revised fix for issue# 2894085: differentiated between two cases where the next pointer should be updated to the end pointer or not - the differentiating negative token value is -XML_TOK_PROLOG_S.

15 years agoFix for issue# 2894085. Removed update to next pointer. It did not seem right to...
Karl Waclawek [Fri, 27 Nov 2009 13:34:29 +0000 (13:34 +0000)]
Fix for issue# 2894085. Removed update to next pointer. It did not seem right to force it to point somewhere between token boundaries, since that could lead the tokenizer to not recognize an end of token.

15 years agoFix for issue # 2895533.
Karl Waclawek [Thu, 12 Nov 2009 16:51:39 +0000 (16:51 +0000)]
Fix for issue # 2895533.

15 years ago- Fix for issue # 2855609 & 2518079.
Karl Waclawek [Tue, 29 Sep 2009 02:49:16 +0000 (02:49 +0000)]
- Fix for issue # 2855609 & 2518079.
- Some code cosmetics.

15 years agoSome AmigaOS related changes.
Steven Solie [Sat, 8 Aug 2009 03:48:55 +0000 (03:48 +0000)]
Some AmigaOS related changes.

15 years agoAmigaOS specific changes to merge a 68k support patch.
Steven Solie [Tue, 10 Feb 2009 03:47:00 +0000 (03:47 +0000)]
AmigaOS specific changes to merge a 68k support patch.

15 years agoMore AmigaOS specific changes.
Steven Solie [Sat, 31 Jan 2009 20:57:34 +0000 (20:57 +0000)]
More AmigaOS specific changes.

15 years agoAmigaOS specific changes. See amiga/README.txt for more details.
Steven Solie [Sat, 31 Jan 2009 06:21:09 +0000 (06:21 +0000)]
AmigaOS specific changes. See amiga/README.txt for more details.

16 years agoRemoved unnecessary linker dependencies.
Karl Waclawek [Mon, 19 Jan 2009 18:37:07 +0000 (18:37 +0000)]
Removed unnecessary linker dependencies.

16 years agoAdded URL for Expat project site.
Karl Waclawek [Mon, 19 Jan 2009 03:35:06 +0000 (03:35 +0000)]
Added URL for Expat project site.