Skip to content

Commit

Permalink
Update to libxslt-1.1.35
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyolee committed Apr 5, 2022
1 parent 9d59aaa commit 0bc043f
Show file tree
Hide file tree
Showing 39 changed files with 552 additions and 573 deletions.
5 changes: 3 additions & 2 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ Requirements:
=============

this library requires a recent version of libxml2 which you can grab from
either the GNOME FTP or the xmlsoft.org server:
either the GNOME download server or the GitLab release page:

ftp://xmlsoft.org/
https://gitlab.gnome.org/GNOME/libxml2/-/releases
https://download.gnome.org/sources/libxml2/

When installing from a distribution package like a tar.gz:
==========================================================
Expand Down
171 changes: 167 additions & 4 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,13 +1,176 @@

NEWS file for libxslt

Note that this is automatically generated from the news webpage at:
http://xmlsoft.org/XSLT/news.html

See the git page at
https://gitlab.gnome.org/GNOME/libxslt

to get a description of the recent commits.Those are the public releases made:
to get a description of the recent commits.
v1.1.35: Feb 16 2022:
- Security:
[CVE-2021-30560] Fix use-after-free in xsltApplyTemplates
Fix memory leak in xsltDocumentElem (David King)
Fix memory leak in xsltCompileIdKeyPattern (David King)
Fix double-free with stylesheets containing entity nodes

- Fixed regressions:
Fix performance regression with predicates in patterns
Fix regression in xsltComputeSortResult

- Bug fixes:
Fix conflict resolution for templates with same priority
Fix xsl:number generating invalid UTF-8
Support attribute value templates in xsl:sort lang attributes
Don't pass first <xsl:sort> in <xsl:apply-templates> twice
Fix quadratic runtime with text and <xsl:message>
Don't allow empty EXSLT durations

- Improvements:
Add xsltproc --huge Argument via libxml XML_PARSE_HUGE (William N. Braswell, Jr.)

- Tests, code quality, fuzzing:
Remove .travis.yml
Fix some misleading indentation (David King)
Use actual types for templates in struct _xsltStylesheet
Add CI for CMake on MSVC (Markus Rickert)
Check for null pointer before calling freelocale
Add CI test for Python 3
Don't set maxDepth in XPath contexts
Transfer XPath limits to XPtr context
Stop using maxParserDepth XPath limit
Make long-to-double cast explicit in date.c
Disable LeakSanitizer
Run clang CI tests with -Wimplicit-int-conversion
Fix implicit-int-conversion warning in exslt/crypto.c
Fix clang -Wimplicit-int-conversion warning (David Kilzer)
Fix clang -Wconditional-uninitialized warning in libxslt/numbers.c (David Kilzer)
Fix -Wshadow warnings in libexslt/dynamic.c (David Kilzer)
Also search parent dir for source XML when fuzzing

- Build system, portability:
Add CMake build files (Markus Rickert)
Initial support for Python 3 (Suleyman Poyraz)
Call ANSI versions of WinAPI functions explicitly
Remove redundant flags from pkg-config files
Suppress automake warning in tests/XSLTMark
Fix linking libexslt dynamic library when using MinGW (Vadim Zeitlin)
Added platform specific path separators (Dmitriy Korovkin)
win32: allow passing *FLAGS on command line
Fix export of xsltExtMarker on Windows (David Kilzer)
Fix redundant includes already in libexslt.h (David Kilzer)
Minor fixes to configure.js
Fix variable syntax in Python configuration
Add new EXSLT string tests to EXTRA_DIST
Fix xml2-config check in configure script
win32: Add configuration for profiler (Chun-wei Fan)
Check whether 'xml2-config --dynamic' is supported

- Documentation:
Add Makefile rule to regenerate xsltproc.html
Update links
Remove MAINTAINERS
Upload documentation to GitLab Pages
Add documentation in devhelp format
Add --enable-rebuild-docs configure option
Fix libexslt header summaries
Fix validity of tutorial XML (David King)
Use DocBook URL for tutorial DTD (David King)
Update libxslt.doap
Add missing options to xsltproc man page



v1.1.34: Oct 30 2019:
- Documentation:
Fix EXSLT web pages (Nick Wellnhofer),
Regenerate web pages (Nick Wellnhofer),
Fix Git link in news.html (Nick Wellnhofer),
Minor documentation fixes after recent changes (Nick Wellnhofer),
Fix typos (Jan Pokorn�),
Regenerate symbols and API docs (Nick Wellnhofer),
Regenerate EXSLT website (Nick Wellnhofer)

- Portability:
Remove stubs when compiling without debugger or profiler (Nick Wellnhofer),
configure.ac: Invoke PKG_CHECK_MODULES for building shared libraries (Hugh McMaster),
configure.ac: Conditionally determine whether xml2-config should pass shared libraries or static libraries (Hugh McMaster),
xslt-config.in: Fix broken --prefix=DIR support (Hugh McMaster),
libexslt.pc.in: Do not expose private library dependencies unless invoked (Hugh McMaster),
libxslt.pc.in: Do not expose private library dependencies unless invoked (Hugh McMaster),
Fix -Wformat-overflow warning (GCC 9) (Nick Wellnhofer),
Stop including ansidecl.h (Nick Wellnhofer),
Remove WIN32_EXTRA_* variables (Nick Wellnhofer),
Fix vsnprintf in Python bindings on Windows (Nick Wellnhofer),
Build without winsock (Nick Wellnhofer),
Stop redefining snprintf on MinGW (Nick Wellnhofer)

- Bug Fixes:
xsl:template without name and match attributes should not be allowed (Nikolai Weibull),
Make sure that Python tests exit with error code (Nick Wellnhofer),
Improve handling of invalid UTF-8 in format-number (Nick Wellnhofer),
Fix dangling pointer in xsltCopyText (Nick Wellnhofer),
Fix memory leak in pattern compilation error path (Nick Wellnhofer),
Fix uninitialized read with UTF-8 grouping chars (Nick Wellnhofer),
Fix integer overflow in FORMAT_GYEAR (Nick Wellnhofer),
Fix performance regression with xsl:number (Nick Wellnhofer),
Backup XPath context node in xsltInitCtxtKey (Nick Wellnhofer),
Fix unsigned integer overflow in date.c (Nick Wellnhofer),
Fix insertion of xsl:fallback content (Nick Wellnhofer),
Avoid quadratic behavior in xsltSaveResultTo (Nick Wellnhofer),
Fix numbering in non-Latin scripts (Nick Wellnhofer),
Fix uninitialized read of xsl:number token (Nick Wellnhofer),
Fix integer overflow in _exsltDateDayInWeek (Nick Wellnhofer),
Rework xsltAttrVT allocation (Nick Wellnhofer),
Fix check of xsltTestCompMatch return value (Nick Wellnhofer),
Fix security framework bypass (Nick Wellnhofer),
Use xmlNewTextChild in EXSLT dyn:map (Nick Wellnhofer),
Fix float casts in exsltDateDuration (Nick Wellnhofer),
Always set context node before calling XPath iterators (Nick Wellnhofer),
Fix attribute precedence with xsl:use-attribute-sets (Nick Wellnhofer),
Backup context node in exsltFuncFunctionFunction (Nick Wellnhofer),
Initialize ctxt->output before evaluating global vars (Nick Wellnhofer),
Fix memory leak in EXSLT functions error path (Nick Wellnhofer)

- Improvements:
Enable continuous integration via GitLab CI (Nick Wellnhofer),
Fix -Wimplicit-fallthrough warnings (Nick Wellnhofer),
Adjust number of API index pages (Nick Wellnhofer),
Make xsltCompileRelativePathPattern non-recursive (Nick Wellnhofer),
Check that crypto:rc4_decrypt produces valid UTF-8 (Nick Wellnhofer),
Avoid recursion in keys.c:skipPredicate (Nick Wellnhofer),
xslt-config.in: Simply handling of $all_flags (Hugh McMaster),
xslt-config.in: Add a --dynamic option to --libs (Hugh McMaster),
xslt-config.in: Simplify basic library handling (Hugh McMaster),
xslt-config.in: Remove unused variable (Hugh McMaster),
xslt-config: Simply handling of --cflags (Hugh McMaster),
Add Travis test with MemorySanitizer (Nick Wellnhofer),
Run Travis ASan tests under Xenial (Nick Wellnhofer),
Improve fuzzers (Nick Wellnhofer),
Always reuse XPath context (Nick Wellnhofer),
Compile with -Wextra (Nick Wellnhofer),
Make profiler support optional (Nick Wellnhofer),
Hide unused code when compiling without debugger (Nick Wellnhofer),
Reorganize fuzzing code (Nick Wellnhofer),
Simplify .gitignore (Nick Wellnhofer),
Optional operation limit (Nick Wellnhofer),
Improve seed corpus and dictionary (Nick Wellnhofer),
Reuse XPath context when compiling stylesheets (Nick Wellnhofer),
Reuse XPath context in dyn:map (Nick Wellnhofer),
Reuse XPath context in saxon:expression (Nick Wellnhofer),
Add libFuzzer targets (Nick Wellnhofer),
Adjust error message in expected test output (Nick Wellnhofer),
Change bug tracker URL (Nick Wellnhofer),
Change git repo URL (Nick Wellnhofer),
Regenerate NEWS (Nick Wellnhofer),
Fix misleading indentation in security.c (Nick Wellnhofer)

- Cleanups:
Candidate release 1 of libxslt 1.1.34 * doc/xsltproc.xml: moved to new place for docbook stylesheet and work around a missing / inrewrite of docbook xsl catalog in Fedora 30 * tests/fuzz/Makefile.am: add fuzz.h to sources * python/Makefile.am: there is no more TODO * libxslt.spec.in: run make tests instead of check to avoid fuzz in that environment, and drop python TODO (Daniel Veillard),
Remove empty TODO file (Nick Wellnhofer),
Remove generated file libxsltclass.txt from version control (Nick Wellnhofer),
Rebuild docs (Nick Wellnhofer)



v1.1.33: Jan 03 2019:
- Portability:
Variables need 'extern' in static lib on Cygwin (Nick Wellnhofer),
Expand Down
4 changes: 2 additions & 2 deletions README.libxslt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
XSLT support for libxml2 (XML toolkit from the GNOME project)

Full documentation is available on-line at
http://xmlsoft.org/XSLT/
https://gitlab.gnome.org/GNOME/libxslt/-/wikis

This code is released under the MIT Licence see the Copyright file.

To report bugs, follow the instructions at:
http://xmlsoft.org/XSLT/bugs.html
https://gitlab.gnome.org/GNOME/libxslt/-/issues

A mailing-list xslt@gnome.org is available, to subscribe:
http://mail.gnome.org/mailman/listinfo/xslt
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

libxslt Windows build with Visual Studio.

This version is libxslt-1.1.34.
This version is libxslt-1.1.35.

To build, simply open the required solution file, and
you know how to use Visual Studio, right?
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions distfiles/download.url
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
http://xmlsoft.org/sources/libxslt-1.1.34.tar.gz
http://xmlsoft.org/sources/libxslt-1.1.34.tar.gz.asc
https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.35.tar.xz
Binary file removed distfiles/libxslt-1.1.34.tar.gz
Binary file not shown.
11 changes: 0 additions & 11 deletions distfiles/libxslt-1.1.34.tar.gz.asc

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@
9c60bc0e1e65d469c6b168fe2473c7fe ChangeLog
0cd9a07afbeb24026c9b03aecfeba458 Copyright
8bdb596bfaab3d2c7a0d85c13785a95f FEATURES
70f3f1d7bfd6cb35d2bb254c95d9c45d INSTALL
9626a9c49e506f4abf726f6a101e1a8b NEWS
bc65c900f4d1e6b9aea0329b3b804dca README.libxslt
a189ab68a1afe4ddabcb384e30222ca5 INSTALL
61d6169d906fa88e544c955afc601547 NEWS
1a79a3d0cb22761880ab0d27c838a014 README.libxslt
1671e62be479162b8d9a012c81bc235e TODO
aba710008f9634a61c5e194ce408ebfb libexslt/common.c
02589406079ecfa3354e8e88139b16db libexslt/crypto.c
58868cd56ea5ec210f7d0270451bc157 libexslt/date.c
408cc31668f6448094ae6759ceaf07b6 libexslt/dynamic.c
cf43f6730a2e837f9116ec4d2d66d072 libexslt/exslt.c
f01af3bf058520059ba6d50f42133717 libexslt/exslt.h
03a75a174bc5b056f014e592cfd4db36 libexslt/exsltexports.h
559ab40dbff2ebd472a5606d2cfe6877 libexslt/functions.c
8912730100a2f79c41f5dd2723a9a32b libexslt/common.c
c247a8c614dfe26f6e4678f5c40ea79f libexslt/crypto.c
5333d704767e37b474c73800362f035a libexslt/date.c
27f07a8c23bf140531135b50d73c1293 libexslt/dynamic.c
d33e58bd10bcc83e0feabf76eb071ca6 libexslt/exslt.c
e3f739c7235640b1ba7c8e8928a63c82 libexslt/exslt.h
5c3fcc6185b2b8e7872111edea806f30 libexslt/exsltexports.h
e004cfea8db1a626d9f588cac6b27a69 libexslt/functions.c
4564d6e70f8ce16e36c0bde5969fdab5 libexslt/libexslt.h
b5ad93926b85474410f85acb65bce94b libexslt/math.c
cd9431155b2d494c9be51fb11133822d libexslt/saxon.c
2783be36ba281f95283ce1ec86543637 libexslt/sets.c
2e3f0395e2a7d945d91a741ae0fb3f9f libexslt/strings.c
e63711f04f38ab6901696e542dd3caaf libexslt/math.c
485d83ebcb259f92929003cb34e25a5a libexslt/saxon.c
59e5c8ec67ff5756d4fdcf5bd1ec26fc libexslt/sets.c
2f356e14eb63ea5b11546456e423ba84 libexslt/strings.c
f27239fb214b8dc23e14fa678368c375 libxslt/attributes.c
32e43c08f66b85266c391301d322a21f libxslt/attributes.h
2a7eb72f2a1fff91f33cd870f1fd3d81 libxslt/attrvt.c
8506606cb7e40b3b42355ae90c8c7710 libxslt/documents.c
22a35bd1102fd1ac301e50cf650a8b8a libxslt/documents.h
f7b9559c88e6d29b1308fed5c16b8f52 libxslt/extensions.c
0396b6be07f707b0c6ee171a63b2e520 libxslt/extensions.h
bb43105c3f470d13f4dcd6815ca8ebb7 libxslt/extensions.c
45e4867f0daebf1eb905471a4be5184c libxslt/extensions.h
70225178e3e9d19c49083e0c424c8d6e libxslt/extra.c
94fe9ce1c0c47724aae4a1bcb8c29433 libxslt/extra.h
6c15c68296f570c7c7aba38a79413b99 libxslt/functions.c
2fc73d3a55ee79d2dfd516aafb779761 libxslt/functions.c
052fd28e9971416b2bbebdc3d1103c4e libxslt/functions.h
cc985ca8862e4d68cc50f16e204e014e libxslt/imports.c
66e26ad969e3c37fdeedcbc2716d7cf3 libxslt/imports.h
Expand All @@ -38,30 +38,30 @@ cc985ca8862e4d68cc50f16e204e014e libxslt/imports.c
b84034c942ffa214709b590b29131637 libxslt/libxslt.h
044b23ede3476d0ce3dba296a9186373 libxslt/namespaces.c
c784b4b8e80274491fe023ce26d4847b libxslt/namespaces.h
8f30dae90e65d1a64b64e989faddf06c libxslt/numbers.c
9f3a520124680b2fc07cf31110b22856 libxslt/numbers.c
27c2c21ab1535f84710fe1c8c8829018 libxslt/numbersInternals.h
36eac05ca263fe841a3abae4155a2d2f libxslt/pattern.c
be86344f85c37f9c94a50d6a3903566f libxslt/pattern.c
adf6b78e6c68a7d34ae680f6dc3f5240 libxslt/pattern.h
e0f3d8518ecfc2be6ca41df513925830 libxslt/preproc.c
829de337aca8b15f699708e6b7340549 libxslt/preproc.h
406507086c5fd6b11220c1443ce9bbf7 libxslt/security.c
85a671580a9c2f6ec532bb541b232d2c libxslt/preproc.c
43092de4393f5033e08aea3b9ecb9012 libxslt/preproc.h
0b7514be7ca2aa5a6208129eeb517371 libxslt/security.c
1b24b61ea6afe01d18c647c94b1245c7 libxslt/security.h
b21c4fd6e88fbe2ff06b1d8f85b4fb6b libxslt/templates.c
be7fdf91a108b1665cc9444ba77dcb48 libxslt/templates.c
6901f4c8fad239b588b9f6d4cdfef5ac libxslt/templates.h
8d35111317486f63111a7c8509fc7a90 libxslt/transform.c
d9a238362e0091ea20b366de55663a4f libxslt/transform.c
ccbcce4553f3231003b1944002814246 libxslt/transform.h
7da7b1fcf378330699c7ecdd96908641 libxslt/trio.h
e41149b088de4a04c067c85969f4db3c libxslt/triodef.h
cb2633c49ef0becb0e7e52bb8e9ab4e1 libxslt/variables.c
ebd9b3b1f996c4a2ed79d4473ff0fd77 libxslt/variables.h
c64153b1a2c8bba1a8aa600741f04690 libxslt/win32config.h
b1faabb8f287cfe792f5a3dcc23a3f49 libxslt/xslt.c
5a1b48024ee44d5012768a494b950ee4 libxslt/xslt.c
0c08b8e7223b72f822a58457520b6387 libxslt/xslt.h
0c245b0fcc81bf537632a45adf8fcffb libxslt/xsltInternals.h
1d599c60fa05b7ba751670ff9c895166 libxslt/xsltInternals.h
751f95448e71222d8e10d31ebf8822df libxslt/xsltexports.h
6245aa2e82a5c5f456a72209cb21bfde libxslt/xsltlocale.c
e54227da6983f85521eec4353d4042f8 libxslt/xsltlocale.c
d7b200e408cefe5082b15d3a5e1bf600 libxslt/xsltlocale.h
4ae43a86daf287c1205fcbbe0ac74f65 libxslt/xsltutils.c
26f352caab186b3f1ae0dc85c5f4872f libxslt/xsltutils.c
5f7848088182b183e6d1fdb335b2616a libxslt/xsltutils.h
8fae823b9109770f82cfb5b77965db13 xsltproc/testThreads.c
9d4aefc875864b6ca024a28d7486b39b xsltproc/xsltproc.c
95ef2c39296a07ff208c5a3530ad995e xsltproc/xsltproc.c
Binary file added distfiles/libxslt-1.1.35.tar.xz
Binary file not shown.
7 changes: 0 additions & 7 deletions libexslt/common.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
#define IN_LIBEXSLT
#include "libexslt/libexslt.h"

#if defined(_WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
#include <win32config.h>
#else
#include "config.h"
#endif

#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>

#include <libxslt/xsltconfig.h>
#include <libxslt/xsltutils.h>
#include <libxslt/xsltInternals.h>
#include <libxslt/extensions.h>
Expand Down
13 changes: 3 additions & 10 deletions libexslt/crypto.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
#define IN_LIBEXSLT
#include "libexslt/libexslt.h"

#if defined(_WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
#include <win32config.h>
#else
#include "config.h"
#endif

#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <libxml/parser.h>
#include <libxml/encoding.h>
#include <libxml/uri.h>

#include <libxslt/xsltconfig.h>
#include <libxslt/xsltutils.h>
#include <libxslt/xsltInternals.h>
#include <libxslt/extensions.h>
Expand Down Expand Up @@ -101,7 +94,7 @@ exsltCryptoHex2Bin (const unsigned char *hex, int hexlen,
else if (tmp >= 'a' && tmp <= 'f')
lo = 10 + (tmp - 'a');

result = hi << 4;
result = (unsigned char) (hi << 4);
result += lo;
bin[j++] = result;
}
Expand Down Expand Up @@ -131,10 +124,10 @@ exsltCryptoCryptoApiReportError (xmlXPathParserContextPtr ctxt,
char *lpMsgBuf;
DWORD dw = GetLastError ();

FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER |
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM, NULL, dw,
MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR) & lpMsgBuf, 0, NULL);
&lpMsgBuf, 0, NULL);

xsltTransformError (xsltXPathGetTransformContext (ctxt), NULL, NULL,
"exslt:crypto error (line %d). %s", line,
Expand Down
Loading

0 comments on commit 0bc043f

Please sign in to comment.