Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6-1]: src/external/mit/expat Pull up following revision(s) (reque...
details: https://anonhg.NetBSD.org/src/rev/0da534750289
branches: netbsd-6-1
changeset: 776175:0da534750289
user: snj <snj%NetBSD.org@localhost>
date: Sun Feb 19 07:26:18 2017 +0000
description:
Pull up following revision(s) (requested by spz in ticket #1435):
external/mit/expat/dist/CMake.README: up to 1.1.1.3
external/mit/expat/dist/CMakeLists.txt: up to 1.1.1.3
external/mit/expat/dist/COPYING: up to 1.1.1.2
external/mit/expat/dist/Changes: up to 1.1.1.4
external/mit/expat/dist/MANIFEST: up to 1.1.1.4
external/mit/expat/dist/Makefile.in: up to 1.1.1.4
external/mit/expat/dist/README: up to 1.1.1.4
external/mit/expat/dist/aclocal.m4: up to 1.1.1.3
external/mit/expat/dist/amiga/expat_lib.c: up to 1.1.1.2
external/mit/expat/dist/amiga/expat_vectors.c: up to 1.1.1.2
external/mit/expat/dist/amiga/launch.c: up to 1.1.1.2
external/mit/expat/dist/bcb5/expat.bpr: up to 1.1.1.3
external/mit/expat/dist/bcb5/expat.mak: up to 1.1.1.2
external/mit/expat/dist/bcb5/expat_static.bpr: up to 1.1.1.3
external/mit/expat/dist/bcb5/expat_static.mak: up to 1.1.1.2
external/mit/expat/dist/bcb5/expatw.bpr: up to 1.1.1.3
external/mit/expat/dist/bcb5/expatw.mak: up to 1.1.1.2
external/mit/expat/dist/bcb5/expatw_static.bpr: up to 1.1.1.3
external/mit/expat/dist/bcb5/expatw_static.mak: up to 1.1.1.2
external/mit/expat/dist/bcb5/xmlwf.bpr: up to 1.1.1.3
external/mit/expat/dist/bcb5/xmlwf.mak: up to 1.1.1.2
external/mit/expat/dist/configure: up to 1.1.1.4
external/mit/expat/dist/configure.ac: up to 1.1.1.2
external/mit/expat/dist/conftools/config.guess: up to 1.3
external/mit/expat/dist/conftools/config.sub: up to 1.3
external/mit/expat/dist/conftools/install-sh: up to 1.1.1.4
external/mit/expat/dist/conftools/ltmain.sh: up to 1.1.1.4
external/mit/expat/dist/doc/expat.png: up to 1.1.1.2
external/mit/expat/dist/doc/valid-xhtml10.png: up to 1.1.1.2
external/mit/expat/dist/doc/xmlwf.1: up to 1.1.1.3
external/mit/expat/dist/doc/xmlwf.sgml delete
external/mit/expat/dist/doc/xmlwf.xml: up to 1.1.1.1
external/mit/expat/dist/examples/elements.c: up to 1.1.1.3
external/mit/expat/dist/examples/outline.c: up to 1.1.1.2
external/mit/expat/dist/expat_config.h.in: up to 1.1.1.4
external/mit/expat/dist/lib/expat.dsp: up to 1.1.1.3
external/mit/expat/dist/lib/expat.h: up to 1.1.1.4
external/mit/expat/dist/lib/expat_external.h: up to 1.1.1.2
external/mit/expat/dist/lib/expat_static.dsp: up to 1.1.1.3
external/mit/expat/dist/lib/expatw.dsp: up to 1.1.1.3
external/mit/expat/dist/lib/expatw_static.dsp: up to 1.1.1.2
external/mit/expat/dist/lib/internal.h: up to 1.1.1.2
external/mit/expat/dist/lib/xmlparse.c: up to 1.6
external/mit/expat/dist/lib/xmlrole.c: up to 1.1.1.3
external/mit/expat/dist/lib/xmltok.c: up to 1.3
external/mit/expat/dist/lib/xmltok_impl.c: up to 1.5
external/mit/expat/dist/m4/libtool.m4: up to 1.1.1.3
external/mit/expat/dist/m4/ltoptions.m4: up to 1.1.1.3
external/mit/expat/dist/m4/ltsugar.m4: up to 1.1.1.2
external/mit/expat/dist/m4/ltversion.m4: up to 1.1.1.3
external/mit/expat/dist/m4/lt~obsolete.m4: up to 1.1.1.2
external/mit/expat/dist/tests/chardata.c: up to 1.1.1.3
external/mit/expat/dist/tests/minicheck.c: up to 1.1.1.2
external/mit/expat/dist/tests/minicheck.h: up to 1.1.1.3
external/mit/expat/dist/tests/runtests.c: up to 1.1.1.3
external/mit/expat/dist/tests/xmltest.sh: up to 1.2
external/mit/expat/dist/win32/README.txt: up to 1.1.1.3
external/mit/expat/dist/win32/expat.iss: up to 1.1.1.4
external/mit/expat/dist/xmlwf/codepage.c: up to 1.1.1.2
external/mit/expat/dist/xmlwf/readfilemap.c: up to 1.1.1.3
external/mit/expat/dist/xmlwf/xmlfile.c: up to 1.1.1.2
external/mit/expat/dist/xmlwf/xmlwf.c: up to 1.1.1.4
external/mit/expat/dist/xmlwf/xmlwf.dsp: up to 1.1.1.3
external/mit/expat/lib/libexpat/expat_config.h: up to 1.4
Update expat to 2.2.0, fixing CVE-2016-0718, CVE-2016-4472,
CVE-2016-5300, and CVE-2012-6702.
diffstat:
external/mit/expat/dist/CMake.README | 12 +-
external/mit/expat/dist/CMakeLists.txt | 28 +-
external/mit/expat/dist/COPYING | 5 +-
external/mit/expat/dist/Changes | 51 +-
external/mit/expat/dist/MANIFEST | 2 +-
external/mit/expat/dist/Makefile.in | 25 +-
external/mit/expat/dist/README | 6 +-
external/mit/expat/dist/aclocal.m4 | 4 +-
external/mit/expat/dist/amiga/expat_lib.c | 8 +-
external/mit/expat/dist/amiga/expat_vectors.c | 4 +-
external/mit/expat/dist/amiga/launch.c | 10 +-
external/mit/expat/dist/bcb5/expat.bpr | 18 +-
external/mit/expat/dist/bcb5/expat.mak | 2 +-
external/mit/expat/dist/bcb5/expat_static.bpr | 16 +-
external/mit/expat/dist/bcb5/expat_static.mak | 2 +-
external/mit/expat/dist/bcb5/expatw.bpr | 20 +-
external/mit/expat/dist/bcb5/expatw.mak | 2 +-
external/mit/expat/dist/bcb5/expatw_static.bpr | 32 +-
external/mit/expat/dist/bcb5/expatw_static.mak | 2 +-
external/mit/expat/dist/bcb5/xmlwf.bpr | 14 +-
external/mit/expat/dist/bcb5/xmlwf.mak | 2 +-
external/mit/expat/dist/configure | 4854 +++++++++-------
external/mit/expat/dist/configure.ac | 10 +-
external/mit/expat/dist/conftools/config.guess | 359 +-
external/mit/expat/dist/conftools/config.sub | 117 +-
external/mit/expat/dist/conftools/install-sh | 392 +-
external/mit/expat/dist/conftools/ltmain.sh | 6857 ++++++++++++++---------
external/mit/expat/dist/doc/expat.png | Bin
external/mit/expat/dist/doc/valid-xhtml10.png | Bin
external/mit/expat/dist/doc/xmlwf.1 | 63 +-
external/mit/expat/dist/doc/xmlwf.sgml | 467 -
external/mit/expat/dist/doc/xmlwf.xml | 440 +
external/mit/expat/dist/examples/elements.c | 7 +
external/mit/expat/dist/examples/outline.c | 7 +
external/mit/expat/dist/expat_config.h.in | 3 +-
external/mit/expat/dist/lib/expat.dsp | 4 +-
external/mit/expat/dist/lib/expat.h | 15 +-
external/mit/expat/dist/lib/expat_external.h | 14 +
external/mit/expat/dist/lib/expat_static.dsp | 4 +-
external/mit/expat/dist/lib/expatw.dsp | 4 +-
external/mit/expat/dist/lib/expatw_static.dsp | 4 +-
external/mit/expat/dist/lib/internal.h | 22 +
external/mit/expat/dist/lib/xmlparse.c | 174 +-
external/mit/expat/dist/lib/xmlrole.c | 224 +-
external/mit/expat/dist/lib/xmltok.c | 115 +-
external/mit/expat/dist/lib/xmltok_impl.c | 216 +-
external/mit/expat/dist/m4/libtool.m4 | 2583 +++++---
external/mit/expat/dist/m4/ltoptions.m4 | 127 +-
external/mit/expat/dist/m4/ltsugar.m4 | 7 +-
external/mit/expat/dist/m4/ltversion.m4 | 12 +-
external/mit/expat/dist/m4/lt~obsolete.m4 | 7 +-
external/mit/expat/dist/tests/chardata.c | 4 +-
external/mit/expat/dist/tests/minicheck.c | 7 +-
external/mit/expat/dist/tests/minicheck.h | 15 +-
external/mit/expat/dist/tests/runtests.c | 479 +-
external/mit/expat/dist/tests/xmltest.sh | 10 +-
external/mit/expat/dist/win32/README.txt | 8 +
external/mit/expat/dist/win32/expat.iss | 25 +-
external/mit/expat/dist/xmlwf/codepage.c | 5 +-
external/mit/expat/dist/xmlwf/readfilemap.c | 9 +-
external/mit/expat/dist/xmlwf/xmlfile.c | 9 +-
external/mit/expat/dist/xmlwf/xmlwf.c | 45 +-
external/mit/expat/dist/xmlwf/xmlwf.dsp | 4 +-
external/mit/expat/lib/libexpat/expat_config.h | 9 +-
64 files changed, 10503 insertions(+), 7499 deletions(-)
diffs (truncated from 34362 to 300 lines):
diff -r fb49d011cc6b -r 0da534750289 external/mit/expat/dist/CMake.README
--- a/external/mit/expat/dist/CMake.README Tue Feb 14 16:59:08 2017 +0000
+++ b/external/mit/expat/dist/CMake.README Sun Feb 19 07:26:18 2017 +0000
@@ -3,25 +3,25 @@
The cmake based buildsystem for expat works on Windows (cygwin, mingw, Visual
Studio) and should work on all other platform cmake supports.
-Assuming ~/expat-2.1.1 is the source directory of expat, add a subdirectory
+Assuming ~/expat-2.2.0 is the source directory of expat, add a subdirectory
build and change into that directory:
-~/expat-2.1.1$ mkdir build && cd build
-~/expat-2.1.1/build$
+~/expat-2.2.0$ mkdir build && cd build
+~/expat-2.2.0/build$
From that directory, call cmake first, then call make, make test and
make install in the usual way:
-~/expat-2.1.1/build$ cmake ..
+~/expat-2.2.0/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
....
-- Configuring done
-- Generating done
--- Build files have been written to: /home/patrick/expat-2.1.1/build
+-- Build files have been written to: /home/patrick/expat-2.2.0/build
If you want to specify the install location for your files, append
-DCMAKE_INSTALL_PREFIX=/your/install/path to the cmake call.
-~/expat-2.1.1/build$ make && make test && make install
+~/expat-2.2.0/build$ make && make test && make install
Scanning dependencies of target expat
[ 5%] Building C object CMakeFiles/expat.dir/lib/xmlparse.c.o
[ 11%] Building C object CMakeFiles/expat.dir/lib/xmlrole.c.o
diff -r fb49d011cc6b -r 0da534750289 external/mit/expat/dist/CMakeLists.txt
--- a/external/mit/expat/dist/CMakeLists.txt Tue Feb 14 16:59:08 2017 +0000
+++ b/external/mit/expat/dist/CMakeLists.txt Sun Feb 19 07:26:18 2017 +0000
@@ -6,7 +6,7 @@
cmake_minimum_required(VERSION 2.6)
set(PACKAGE_BUGREPORT "expat-bugs%libexpat.org@localhost")
set(PACKAGE_NAME "expat")
-set(PACKAGE_VERSION "2.1.1")
+set(PACKAGE_VERSION "2.2.0")
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
set(PACKAGE_TARNAME "${PACKAGE_NAME}")
@@ -41,6 +41,10 @@
if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS -wd4996)
endif(MSVC)
+if(WIN32)
+ add_definitions(-DWIN32)
+ set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Add a suffix, usually d on Windows")
+endif(WIN32)
set(expat_SRCS
lib/xmlparse.c
@@ -50,18 +54,31 @@
lib/xmltok_ns.c
)
-if(WIN32 AND BUILD_shared)
- set(expat_SRCS ${expat_SRCS} lib/libexpat.def)
-endif(WIN32 AND BUILD_shared)
-
if(BUILD_shared)
set(_SHARED SHARED)
+ if(WIN32)
+ set(expat_SRCS ${expat_SRCS} lib/libexpat.def)
+ endif(WIN32)
else(BUILD_shared)
set(_SHARED STATIC)
+ if(WIN32)
+ add_definitions(-DXML_STATIC)
+ endif(WIN32)
endif(BUILD_shared)
add_library(expat ${_SHARED} ${expat_SRCS})
+set(LIBCURRENT 7) # sync
+set(LIBREVISION 2) # with
+set(LIBAGE 6) # configure.ac!
+math(EXPR LIBCURRENT_MINUS_AGE "${LIBCURRENT} - ${LIBAGE}")
+
+if(NOT WIN32)
+ set_property(TARGET expat PROPERTY VERSION ${LIBCURRENT_MINUS_AGE}.${LIBAGE}.${LIBREVISION})
+ set_property(TARGET expat PROPERTY SOVERSION ${LIBCURRENT_MINUS_AGE})
+ set_property(TARGET expat PROPERTY NO_SONAME ${NO_SONAME})
+endif(NOT WIN32)
+
install(TARGETS expat RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
@@ -76,6 +93,7 @@
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/expat.pc DESTINATION lib/pkgconfig)
+add_custom_command(TARGET expat PRE_BUILD COMMAND $(MAKE) -C doc xmlwf.1)
if(BUILD_tools AND NOT WINCE)
set(xmlwf_SRCS
diff -r fb49d011cc6b -r 0da534750289 external/mit/expat/dist/COPYING
--- a/external/mit/expat/dist/COPYING Tue Feb 14 16:59:08 2017 +0000
+++ b/external/mit/expat/dist/COPYING Sun Feb 19 07:26:18 2017 +0000
@@ -1,6 +1,5 @@
-Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
- and Clark Cooper
-Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Expat maintainers.
+Copyright (c) 1998-2000 Thai Open Source Software Center Ltd and Clark Cooper
+Copyright (c) 2001-2016 Expat maintainers
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
diff -r fb49d011cc6b -r 0da534750289 external/mit/expat/dist/Changes
--- a/external/mit/expat/dist/Changes Tue Feb 14 16:59:08 2017 +0000
+++ b/external/mit/expat/dist/Changes Sun Feb 19 07:26:18 2017 +0000
@@ -1,3 +1,52 @@
+Release 2.2.0 Tue June 21 2016
+ Security fixes:
+ #537 CVE-2016-0718 -- Fix crash on malformed input
+ CVE-2016-4472 -- Improve insufficient fix to CVE-2015-1283 /
+ CVE-2015-2716 introduced with Expat 2.1.1
+ #499 CVE-2016-5300 -- Use more entropy for hash initialization
+ than the original fix to CVE-2012-0876
+ #519 CVE-2012-6702 -- Resolve troublesome internal call to srand
+ that was introduced with Expat 2.1.0
+ when addressing CVE-2012-0876 (issue #496)
+
+ Bug fixes:
+ Fix uninitialized reads of size 1
+ (e.g. in little2_updatePosition)
+ Fix detection of UTF-8 character boundaries
+
+ Other changes:
+ #532 Fix compilation for Visual Studio 2010 (keyword "C99")
+ Autotools: Resolve use of "$<" to better support bmake
+ Autotools: Add QA script "qa.sh" (and make target "qa")
+ Autotools: Respect CXXFLAGS if given
+ Autotools: Fix "make run-xmltest"
+ Autotools: Have "make run-xmltest" check for expected output
+ p90 CMake: Fix static build (BUILD_shared=OFF) on Windows
+ #536 CMake: Add soversion, support -DNO_SONAME=yes to bypass
+ #323 CMake: Add suffix "d" to differentiate debug from release
+ CMake: Define WIN32 with CMake on Windows
+ Annotate memory allocators for GCC
+ Address all currently known compile warnings
+ Make sure that API symbols remain visible despite
+ -fvisibility=hidden
+ Remove executable flag from source files
+ Resolve COMPILED_FROM_DSP in favor of WIN32
+
+ Special thanks to:
+ Björn Lindahl
+ Christian Heimes
+ Cristian RodrÃguez
+ Daniel Krügler
+ Gustavo Grieco
+ Karl Waclawek
+ László Böszörményi
+ Marco Grassi
+ Pascal Cuoq
+ Sergei Nikulov
+ Thomas Beutlich
+ Warren Young
+ Yann Droneaud
+
Release 2.1.1 Sat March 12 2016
Security fixes:
#582: CVE-2015-1283 - Multiple integer overflows in XML_GetBuffer
@@ -7,7 +56,7 @@
#520: Symbol XML_SetHashSalt was not exported
Output of "xmlwf -h" was incomplete
- Other changes
+ Other changes:
#503: Document behavior of calling XML_SetHashSalt with salt 0
Minor improvements to man page xmlwf(1)
Improvements to the experimental CMake build system
diff -r fb49d011cc6b -r 0da534750289 external/mit/expat/dist/MANIFEST
--- a/external/mit/expat/dist/MANIFEST Tue Feb 14 16:59:08 2017 +0000
+++ b/external/mit/expat/dist/MANIFEST Sun Feb 19 07:26:18 2017 +0000
@@ -44,7 +44,7 @@
doc/style.css
doc/valid-xhtml10.png
doc/xmlwf.1
-doc/xmlwf.sgml
+doc/xmlwf.xml
CMakeLists.txt
CMake.README
COPYING
diff -r fb49d011cc6b -r 0da534750289 external/mit/expat/dist/Makefile.in
--- a/external/mit/expat/dist/Makefile.in Tue Feb 14 16:59:08 2017 +0000
+++ b/external/mit/expat/dist/Makefile.in Sun Feb 19 07:26:18 2017 +0000
@@ -51,7 +51,7 @@
buildlib: $(LIBRARY) expat.pc
-all: $(LIBRARY) expat.pc xmlwf/xmlwf@EXEEXT@ examples/elements examples/outline
+all: $(LIBRARY) expat.pc xmlwf/xmlwf@EXEEXT@ examples/elements examples/outline $(MANFILE)
clean:
cd lib && rm -f $(LIBRARY) *.@OBJEXT@ *.lo && rm -rf .libs _libs
@@ -77,7 +77,10 @@
tests/runtests
tests/runtestspp
-install: xmlwf/xmlwf@EXEEXT@ installlib
+$(MANFILE):
+ $(MAKE) -C doc xmlwf.1
+
+install: xmlwf/xmlwf@EXEEXT@ installlib $(MANFILE)
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf@EXEEXT@ $(DESTDIR)$(bindir)/xmlwf
$(INSTALL_DATA) $(MANFILE) $(DESTDIR)$(man1dir)
@@ -154,11 +157,11 @@
examples/elements.@OBJEXT@: examples/elements.c
examples/elements: examples/elements.@OBJEXT@ $(LIBRARY)
- $(LINK_EXE) $< $(LIBRARY)
+ $(LINK_EXE) examples/elements.@OBJEXT@ $(LIBRARY)
examples/outline.@OBJEXT@: examples/outline.c
examples/outline: examples/outline.@OBJEXT@ $(LIBRARY)
- $(LINK_EXE) $< $(LIBRARY)
+ $(LINK_EXE) examples/outline.@OBJEXT@ $(LIBRARY)
tests/chardata.@OBJEXT@: tests/chardata.c tests/chardata.h
tests/minicheck.@OBJEXT@: tests/minicheck.c tests/minicheck.h
@@ -180,11 +183,19 @@
wget --output-document=tests/xmlts.zip \
http://www.w3.org/XML/Test/xmlts20080827.zip
-tests/XML-Test-Suite: tests/xmlts.zip
+tests/xmlconf: tests/xmlts.zip
cd tests && unzip -q xmlts.zip
-run-xmltest: xmlwf/xmlwf@EXEEXT@ tests/XML-Test-Suite
- tests/xmltest.sh
+run-xmltest: xmlwf/xmlwf@EXEEXT@ tests/xmlconf
+ tests/xmltest.sh 2>&1 | tee tests/xmltest.log
+ diff -u tests/xmltest.log.expected tests/xmltest.log
+
+.PHONY: qa
+qa:
+ ./qa.sh address
+ ./qa.sh memory
+ ./qa.sh undefined
+ ./qa.sh coverage
.SUFFIXES: .c .cpp .lo .@OBJEXT@
diff -r fb49d011cc6b -r 0da534750289 external/mit/expat/dist/README
--- a/external/mit/expat/dist/README Tue Feb 14 16:59:08 2017 +0000
+++ b/external/mit/expat/dist/README Sun Feb 19 07:26:18 2017 +0000
@@ -1,5 +1,5 @@
- Expat, Release 2.1.1
+ Expat, Release 2.2.0
This is Expat, a C library for parsing XML, written by James Clark.
Expat is a stream-oriented XML parser. This means that you register
@@ -105,7 +105,7 @@
environment, because variable-setting priority is
1) commandline
2) in-makefile
-3) environment
+3) environment
Note: This only applies to the Expat library itself, building UTF-16 versions
of xmlwf and the tests is currently not supported.
@@ -114,7 +114,7 @@
"/usr/ccs/bin", which is not in the default PATH. You will need to
add this to your path for the "make" command, and probably also switch
to GNU make (the "make" found in /usr/ccs/bin does not seem to work
-properly -- appearantly it does not understand .PHONY directives). If
+properly -- apparently it does not understand .PHONY directives). If
you're using ksh or bash, use this command to build:
PATH=/usr/ccs/bin:$PATH make
diff -r fb49d011cc6b -r 0da534750289 external/mit/expat/dist/aclocal.m4
--- a/external/mit/expat/dist/aclocal.m4 Tue Feb 14 16:59:08 2017 +0000
+++ b/external/mit/expat/dist/aclocal.m4 Sun Feb 19 07:26:18 2017 +0000
@@ -1,6 +1,6 @@
-# generated automatically by aclocal 1.14.1 -*- Autoconf -*-
+# generated automatically by aclocal 1.15 -*- Autoconf -*-
-# Copyright (C) 1996-2013 Free Software Foundation, Inc.
+# Copyright (C) 1996-2014 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
diff -r fb49d011cc6b -r 0da534750289 external/mit/expat/dist/amiga/expat_lib.c
--- a/external/mit/expat/dist/amiga/expat_lib.c Tue Feb 14 16:59:08 2017 +0000
+++ b/external/mit/expat/dist/amiga/expat_lib.c Sun Feb 19 07:26:18 2017 +0000
@@ -8,10 +8,10 @@
** distribute, sublicense, and/or sell copies of the Software, and to
** permit persons to whom the Software is furnished to do so, subject to
** the following conditions:
-**
Home |
Main Index |
Thread Index |
Old Index