Log

Author Commit Date CI Message
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 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 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 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 481fd6bb 2024-06-16T16:30:54 tests: Remove testThreads.c This was merged into runtest.c some time ago.
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 1b640358 2024-06-16T00:39:39 schemas: Stop using xmlValidateNotationUse Simplify symbol availability logic.
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
Nick Wellnhofer a331526c 2024-06-10T16:21:12 io: Don't report write errors twice
Nick Wellnhofer 717f3a7b 2024-06-10T18:50:28 io: Fix resetting xmlParserInputBufferCreateFilename hook We don't want to invoke the default function.
Nick Wellnhofer 47cbb6bb 2024-06-10T14:04:00 doc: Don't mention xmlNewInputURL
Nick Wellnhofer b46decdf 2024-06-12T15:58:36 Bump version
Nick Wellnhofer cdd2575f 2024-06-12T15:45:38 Release v2.13.0
Nick Wellnhofer d5523d27 2024-06-12T15:37:17 Update NEWS
Nick Wellnhofer 7a94fd0b 2024-06-12T13:35:20 doc: Update documentation
Nick Wellnhofer d3fafde7 2024-06-12T13:33:05 test: Update testapi.c
Nick Wellnhofer 4467b891 2024-06-12T13:32:32 Add missing argument checks for new API functions
Nick Wellnhofer 8318b5a6 2024-06-09T14:22:53 parser: Fix NULL checks for output arguments
Rosen Penev f2270863 2024-06-06T13:42:03 meson: convert boolean options to feature option Simpler. Seems like they're only disabled by minimum. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Andrew Potter ed3e53de 2024-06-06T10:50:19 meson: Pass LIBXML_STATIC in dependency
Nick Wellnhofer afe8f845 2024-06-07T00:01:16 runtest: Work around broken EUC-JP support in musl iconv Should fix #728.
Nick Wellnhofer 0cde1b78 2024-06-06T23:50:03 parser: Fix "Truncated multi-byte sequence" error Don't raise the error if decoding failed.
Nick Wellnhofer 02cbb2b6 2024-06-06T23:09:17 runtest: Suppress undeclared entity errors
Nick Wellnhofer 0d0cb4c2 2024-06-06T23:07:16 runtest: Check for IBM-1141 encoding handler Should fix #729.
Nick Wellnhofer 1ae68e40 2024-06-06T22:55:15 python: Fix build with disabled modules
Nick Wellnhofer 15ed7566 2024-06-06T22:18:05 xinclude: Fix warning when building --without-xptr
Nick Wellnhofer e2919516 2024-06-06T19:28:23 xmllint: Fix build --with-valid --without-html
Nick Wellnhofer 122b6130 2024-06-04T16:33:02 parser: Fix performance regression when parsing namespaces The namespace hash table didn't reuse deleted buckets, leading to quadratic behavior. Also ignore deleted buckets when resizing. Fixes #726.
Sadaf Ebrahimi 897c73fe 2024-06-05T17:43:32 Add missing _cplusplus processing clause
Rosen Penev 16d914a9 2024-06-03T17:09:17 meson: fix compilation with local binaries threads_dep is needed for runtest. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev 4b2f250a 2024-05-03T13:11:47 meson: don't use dl dependency on old meson dl dependency was introduced with version 0.62. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev 0160127f 2024-05-01T13:07:52 meson: fix usage as a subproject include directories must be passed to that projects can use headers. Also add override_dependencies to make sure that it's used when available as a subproject. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Nick Wellnhofer a7e26707 2024-06-03T14:04:44 parser: Don't overwrite OOM errors in xmlSBuf
Nick Wellnhofer f0d89158 2024-06-01T15:41:43 entities: Unconst predefined entities Partial revert of commit 63ce5f9a. For some reason, Chromium and WebKit set the etype member of predefined entities. This should be fixed first.
Nick Wellnhofer 5198de4b 2024-05-31T13:42:08 fuzz: Make allocation in xmlBuildQName more likely Limit size of static buffer in fuzzing mode.
Nick Wellnhofer 11cd18d8 2024-05-31T13:31:09 valid: Check return value of xmlValidBuildAContentModel Fixes return code in case of malloc failure.
Nick Wellnhofer ec09909d 2024-05-29T13:47:37 autotools: Fix pthread detection on FreeBSD pthread_join is defined by libc, so check for pthread_create instead. Should fix #725.
Nick Wellnhofer b7f30bae 2024-05-28T22:26:18 fuzz: Fix aarch64 build on OSS-Fuzz
Nick Wellnhofer e349709a 2024-05-21T21:07:16 build: Remove --with-fexceptions configuration option
Nick Wellnhofer f524993e 2024-05-21T20:56:55 build: Clean up configuration options Remove run-debug from meson. Fix documentation.
Nick Wellnhofer 11ce63f0 2024-05-21T20:38:52 build: Don't check for isascii
Nick Wellnhofer 6f2a5973 2024-05-21T20:37:03 build: Don't check for uint32_t
Nick Wellnhofer 5c9e0ebe 2024-05-21T20:27:45 autotools: Change ICU message Only log non-default actions.
Nick Wellnhofer 54629e0f 2024-05-21T20:25:23 autotools: Remove --with-coverage configuration option
Nick Wellnhofer e80f27fc 2024-05-21T18:37:57 build: Don't check for inttypes.h This header isn't used.
Nick Wellnhofer dda69626 2024-05-21T18:31:37 autotools: Only check for networking headers if required