Log

Author Commit Date CI Message
Nick Wellnhofer f9c33a55 2024-06-21T18:25:11 parser: Undeprecate some xmlParserInput members
Nick Wellnhofer 1228b4e0 2024-06-21T18:22:04 parser: Deprecate xmlParserCtxt->lastError We alredy have xmlCtxtGetLastError().
Nick Wellnhofer f82ca02b 2024-06-21T18:17:11 parser: Undeprecate some xmlParserCtxt members These are essential for SAX parsers.
Nick Wellnhofer 7ba6c8fe 2024-06-21T04:59:11 autotools: Remove libxml-2.0-uninstalled.pc
Nick Wellnhofer c106455c 2024-06-21T04:18:04 build: Set Cflags.private on Windows
Nick Wellnhofer 4c1b8851 2024-06-21T03:26:54 autotools: Move MODULE_PLATFORM_LIBS into NON_PC_LIBS
Nick Wellnhofer 29bf09ec 2024-06-21T03:16:44 autotools: Remove XML_LIBTOOLLIBS
Nick Wellnhofer 02f519e6 2024-06-21T02:07:17 autotools: Use pkg-config to check for libreadline This handles static linking properly and avoids overlinking. Change the --with-readline default to no as it was before and raise an error if libreadline couldn't be found. Do the same for libhistory.
Nick Wellnhofer 1a5ed747 2024-06-21T03:38:11 build: Fix XML_LIBDIR usage
Nick Wellnhofer fc4bd04b 2024-06-21T03:32:30 autotools: Remove unused variable
Rosen Penev 2def7b4b 2024-06-18T13:55:34 clang-tidy: move assignments out of if Found with bugprone-assignment-in-if-condition Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev 5803ad26 2024-06-18T17:05:09 meson: change history to a feature Simpler. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev e9948ee5 2024-06-18T16:47:15 meson: change readline to a feature Simpler and easier to force enable. Also removed wrong curses check. This is meant for static readline and not needed with meson. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev 5d542fef 2024-06-16T20:02:45 libxml: define ATTRIBUTE_UNUSED for clang Silences warnings under Clang on Windows. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Mike Dalessio bbbbbb46 2024-06-20T03:19:48 parser: implement xmlCtxtGetOptions In 712a31ab, the `options` struct member was deprecated. To allow callers to check the status of options bits, introduce xmlCtxtGetOptions.
Heiko Becker a4517bfe 2024-06-19T23:13:47 meson: Add libxml2 part of include dir to pc file The autotools build results in a pkgconfig file, which looks like this: " ... includedir=${prefix}/include ... Cflags: -I${includedir}/libxml2 " The latter part is missing when built with meson.
Rosen Penev 217e9b7a 2024-06-08T12:27:45 clang-tidy: don't return in void functions Found with readability-redundant-control-flow Signed-off-by: Rosen Penev <rosenp@gmail.com>
Nick Wellnhofer 4c3d22b0 2024-06-20T21:06:38 uri: Fix xmlBuildURI with NULL base Don't try to parse URI if base is NULL. Fixes functions like xmlParseDTD with certain filenames. Should fix #742.
Nick Wellnhofer 1dd5e76a 2024-06-17T21:06:46 xinclude: Don't remove root element Don't replace include element at root with empty nodeset.
Nick Wellnhofer 860fb460 2024-06-17T20:58:27 SAX2: Fix null deref after malloc failure Short-lived regression.
Rosen Penev 1d8bd126 2024-06-17T14:28:51 meson: fix icu and iconv om BSDs again libdir is needed when searching for iconv, not includedir. Remove OpenBSD from the bsd list. Something is wrong there and iconv.h is installed somewhere else. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev f61d23b8 2024-06-16T19:56:07 meson: only apply threads_dep to runtest Not needed elsewhere. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Nick Wellnhofer 32cac377 2024-06-17T17:59:49 parser: Selectively reenable reading from "-" Make filename "-" mean stdin for legacy SAX1 functions and xmlReadFile. This should hopefully fix most command line utilities. See #737.
Nick Wellnhofer 52ce0d70 2024-06-17T17:35:12 tests: Add XInclude test for issue #733
Nick Wellnhofer c5e9a5b2 2024-06-17T15:29:56 parser: Use catalogs with resource loader
Nick Wellnhofer 57004006 2024-06-17T14:37:54 reader: Fix xmlTextReaderReadString Regressed in commit 7cbf609a. Should fix #738.
Nick Wellnhofer 3c7c831c 2024-06-17T14:15:49 xinclude: Set XPath context doc Regressed in commit 78eab7a1.
Nick Wellnhofer 6deebe03 2024-06-17T13:09:37 parser: Make xmlInputCreateUrl handle HTTP input
Nick Wellnhofer d2fd9d37 2024-06-17T12:55:44 parser: Fix swapped arguments
Nick Wellnhofer 1ff48433 2024-06-17T12:54:46 xinclude: Load included documents with XML_PARSE_DTDLOAD We must detect ID attributes declared in external DTDs. Regressed in 12f0bb94.
Nick Wellnhofer 3aca5bcf 2024-06-17T03:34:06 doc: Ignore empty headers
Nick Wellnhofer 5a9a0e6f 2024-06-17T03:16:49 testapi: Don't test xmlunicode functions
Nick Wellnhofer 1112699c 2024-06-17T02:42:18 legacy: Remove most legacy functions from public headers Also remove warning messages.
Rosen Penev b4b4162f 2024-06-15T19:41:08 meson: fix compilation on BSDs with icu+iconv on BSDs, icu is installed and included from /usr/local. When found, libiconv headers override the normal ones and thus result in a missing link. Work around this oddity and add the link. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev 915951b8 2024-06-16T18:19:42 meson: add DEFS to CFLAGS Adding a configuration flag as an include directory is wrong and errors on BSDs. ERROR: Include dir -DU_DISABLE_RENAMING=1 does not exist. Matches the autotools build now. Requires has_argument to fix non BSDs because of an annoying meson quirk. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Nick Wellnhofer faae3a91 2024-06-16T23:21:55 SAX2: Split out legacy SAX1 handling Split xmlSAX2StartElement into two functions handling legacy SAX1 and HTML.
Nick Wellnhofer 2b0c4abb 2024-06-16T21:52:12 threads: Remove pthread weak symbol hack On Linux, we tried to detect the presence of libpthread to disable things like locks. This questionable hack doesn't work since glibc 2.34 which merged libpthread into libc.
Nick Wellnhofer 38488027 2024-06-16T21:16:43 xmllint: Support libreadline without history
Nick Wellnhofer 5fca9498 2024-06-16T19:56:08 doc: Hide internal macro
Nick Wellnhofer fb2b9cda 2024-06-16T19:51:44 doc: Remove broken struct field description
Nick Wellnhofer 33a1f897 2024-06-16T19:16:47 legacy: Merge SAX.c into legacy.c
Nick Wellnhofer 1341deac 2024-06-16T17:57:12 xmllint: Move shell to xmllint Move source code for xmllint shell to shell.c and move it from the libxml2 library to the xmllint executable. Also allow shell to run without XPath and debug modules. Add stubs for old shell API functions in legacy build mode.
Nick Wellnhofer c9b06591 2024-06-16T17:36:05 xmllint: Fix resetting error in xmlHTMLPrintError Make sure that we don't change the error handler when fuzzing.
Nick Wellnhofer 481fd6bb 2024-06-16T16:30:54 tests: Remove testThreads.c This was merged into runtest.c some time ago.
Nick Wellnhofer 1b640358 2024-06-16T00:39:39 schemas: Stop using xmlValidateNotationUse Simplify symbol availability logic.
Nick Wellnhofer fa01278d 2024-06-16T00:11:41 regexp: Hide experimental legacy code This was never made public.
Nick Wellnhofer 10d60d15 2024-06-16T00:04:46 regexp: Stop using LIBXML_AUTOMATA_ENABLED This macro always equals LIBXML_REGEXP_ENABLED.
Nick Wellnhofer 11c3f84b 2024-06-15T23:57:39 SAX2: Always make xmlSAX2{Start,End}Element public Simplify symbol availability logic.
Nick Wellnhofer f307237e 2024-06-15T23:53:04 schemas: Use private copy of global NaN and Inf Simplify symbol availability logic.
Nick Wellnhofer b0fc67aa 2024-06-15T22:53:55 build: Remove --with-tree configuration option This option would allow for a smaller, but mostly useless minimal build. But it complicates the symbol availability logic in an insane way and requires specialized tools like our custom C parser in doc/apibuild.py. See #717.
Nick Wellnhofer 7cf7a54a 2024-06-15T22:27:40 build: Only enable linker version script in legacy mode The version script is deprecated but required for backward compatibility.
Nick Wellnhofer 7b65c90f 2024-06-16T18:29:21 Regenerate libxml2-api.xml and testapi.c
Nick Wellnhofer 49672779 2024-06-16T18:45:47 parser: Make XML_INPUT constants signed Avoid conversion to unsigned which triggers (harmless) UBSan warnings.
Rosen Penev 52d9d768 2024-06-15T16:20:04 runtest: move catalog.h out of threads define. It's needed when threads are disabled. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Nick Wellnhofer 08a6a084 2024-06-15T22:00:00 Fix previous commit
Nick Wellnhofer 84666581 2024-06-15T20:34:07 catalog: Fix initialization Initialize mutex via xmlInitParser. Fix some other initialization calls.
Nick Wellnhofer 898e5a14 2024-06-15T20:17:18 build: Remove compiler TLS warning
Nick Wellnhofer e714f506 2024-06-15T20:14:03 build: Stop installing libxml.m4 This file is deprecated and unmaintained. It will be kept in the source tree for a while.
Nick Wellnhofer 6ed39a82 2024-06-15T19:37:27 runtest: Allow catalogs It's enough to disable the system catalog to avoid unwanted allocations.
Nick Wellnhofer 208f27f9 2024-06-15T19:13:08 include: Don't define ATTRIBUTE_UNUSED in public header Stop polluting namespace with unprefixed names.
Nick Wellnhofer 387f0c78 2023-12-06T18:35:30 include: Readd circular dependency between tree.h and parser.h There are dozens of downstream projects that only include tree.h but use declarations from parser.h. This broke after the recent cleanup of circular dependencies. Make tree.h include parser.h again. This is a hack but doesn't change the include directory struture. This commit only made it into the 2.12 branch but wasn't applied to master, so the issue turned up in 2.13.0 again. Should fix #734.
Nick Wellnhofer bd208d5f 2024-06-15T01:40:06 xinclude: Add another missing include
Nick Wellnhofer f070acc5 2024-06-14T23:51:31 autotools: Abort if external libraries couldn't be found This makes the configuration process more robust and deterministic. Before, we would silently disable options.
Jan Alexander Steffens (heftig) 599ceaff 2024-06-15T00:53:15 xinclude: Add missing include Gambas fails to compile with error: 'xmlStructuredErrorFunc' has not been declared
Ryan Carsten Schmidt 86c4cf58 2024-06-14T21:31:56 Fix typo in NEWS (--with-html -> --with-http)
Miklos Vajna 7e83a089 2024-06-14T22:29:29 win32, msvc: fix missing linking against Bcrypt.lib Fixes this link error: dict.obj : error LNK2019: unresolved external symbol BCryptGenRandom referenced in function xmlInitRandom Commit 2e9e758d1ecb52b73a43db79d326c18d7d94c8d7 (dict: Get random seed from system PRNG, 2023-12-24) updated cmake, but not nmake, correct this.
Nick Wellnhofer 1aa37db0 2024-06-14T20:44:45 xinclude: Don't raise error on empty nodeset xmlXPtrEval returning NULL means an empty nodeset if no error code is set. See #733.
Nick Wellnhofer 2608baaf 2024-06-14T19:42:40 parser: Make failure to load main document a warning Revert the change that made failures to load the main document an error. This fixes the --path option of xmllint and xsltproc. Should fix #733.
Nick Wellnhofer 2f128096 2024-06-14T16:44:09 tree: Fix freeing entities via xmlFreeNode Call xmlFreeEntity to free all entity members. Fixes #731.
Nick Wellnhofer 039ce1e8 2024-06-14T16:41:43 parser: Pass global object to sax->setDocumentLocator Revert part of commit c011e760. Fixes #732.
Nick Wellnhofer 3b4a84e4 2024-06-10T23:20:43 encoding: Deprecate xmlCharEncodingHandler members
Nick Wellnhofer b34dc1e4 2024-06-10T23:20:22 tree: Deprecate xmlBuffer members
Nick Wellnhofer 712a31ab 2024-06-10T23:06:13 parser: Deprecate most public struct members This will probably cause many warnings in downstream code abusing libxml2 internals, but we can always undeprecate some members later.
Nick Wellnhofer df40f64e 2024-06-13T18:00:33 fuzz: Avoid accessing internal struct members Switch to xmlNewIOInputStream.
Nick Wellnhofer 0c97eaa7 2024-06-10T23:05:40 xmllint: Rewrite HTML error output
Nick Wellnhofer 1c179496 2024-06-12T19:55:47 xlink: Deprecate xlinkGetDefault* These functions read an otherwise unused global and seem useless.
Nick Wellnhofer 046663bc 2024-06-12T19:43:22 xlink: Deprecate xlinkSetDefault* These functions set an otherwise unused global and seem useless.
Nick Wellnhofer 669bd349 2024-06-12T18:20:01 xpointer: Remove support for XPointer locations The latest spec for what it essentially an XPath extension seems to be this working draft from 2002: https://www.w3.org/TR/xptr-xpointer/ The xpointer() scheme is listed as "being reviewed" in the XPointer registry since at least 2006. libxml2 seems to be the only modern software that tries to implement this spec, but the code has many bugs and quality issues. If you configure --with-legacy, old symbols are retained for ABI compatibility.
Nick Wellnhofer dba1ed85 2024-06-12T18:19:55 ftp: Remove FTP support Remove the built-in FTP client. If you configure --with-legacy, old symbols are retained for ABI compatibility.
Nick Wellnhofer 52384043 2024-06-11T19:10:41 parser: Pass resource type to resource loader
Nick Wellnhofer f96dca9c 2024-06-11T18:14:43 xmllint: Switch to resource loader
Nick Wellnhofer ab5e6deb 2024-06-11T18:11:51 parser: Introduce XML_INPUT_NETWORK input flag This allows to disable network access when creating parser inputs with xmlInputCreateUrl.
Nick Wellnhofer 780e432a 2024-06-11T16:58:09 fuzz: Move to per-context error handler
Nick Wellnhofer 116d8c01 2024-06-11T15:48:32 fuzz: Move to per-context resource loader
Nick Wellnhofer 89fcae4d 2024-06-11T16:19:58 parser: Don't report malloc failures when creating context We don't want messages to stderr before an error handler could be set on a parser context.
Nick Wellnhofer ef8dc4f6 2024-06-11T14:58:55 schemas: Add callbacks for resource loader
Nick Wellnhofer fd7d9e5e 2024-06-11T14:47:03 reader: Add callbacks for resource loader
Nick Wellnhofer fa2592b3 2024-06-11T14:40:28 xinclude: Add callbacks for resource loader
Nick Wellnhofer 886c427a 2024-06-11T14:04:38 c14n: Move some static xmlNs variables to the stack Static variables aren't thread-safe.
Nick Wellnhofer 40b76eda 2024-06-11T12:54:12 relaxng: Add callbacks for resource loader
Nick Wellnhofer 89743f8b 2024-06-11T11:34:48 test: Disable catalogs with xmlCatalogSetDefaults Disable catalogs instead of tracking catalog allocations, simplifying memory leak detection. Also stop using xmlNoNetExternalEntityLoader.
Nick Wellnhofer 64ad2725 2024-06-11T03:51:43 parser: Introduce per-context resource loader
Nick Wellnhofer b9d2f3c9 2024-06-11T02:15:18 parser: Introduce new input API - xmlInputCreateUrl - xmlInputCreateMemory - xmlInputCreateString - xmlInputCreateFd - xmlInputCreateIO - xmlInputSetEncoding These functions don't take a parser context and work on xmlParserInputs, replacing functions working on xmlParserInputBuffers. xmlInputCreateUrl and xmlInputSetEncoding offer fine-grained error handling. Several XML_INPUT_* flags offer additional control.
Nick Wellnhofer 410931e3 2024-06-11T00:55:38 parser: Only set input ID for PE refs Other input streams don't require IDs.
Nick Wellnhofer a3b2baeb 2024-06-11T00:52:04 parser: Simplify xmlNewInputFromFile
Nick Wellnhofer 0b588387 2024-06-11T00:37:11 parser: Rework XML_PARSE_NONET handling
Nick Wellnhofer ff3b0919 2024-06-11T00:00:32 parser: Implement XML_PARSE_NO_UNZIP option
Nick Wellnhofer 1432949d 2024-06-10T23:57:52 io: Pass input flags to xmlParserInputBufferCreateUrl
Nick Wellnhofer b5890cb4 2024-06-10T18:51:56 io: Remove xmlParserInputBufferCreateFilenameSafe
Nick Wellnhofer 1b1e8b3c 2024-06-10T16:39:57 io: Stop invoking generic error handler for IO errors