Roll libxml from c444c96e to f506ec66

I previously rolled these commits in but then reverted them due to a
crash:
https://chromium-review.googlesource.com/c/chromium/src/+/5403594
https://chromium-review.googlesource.com/c/chromium/src/+/5449835

This roll includes additional libxml commits which fix the crash.

I manually verified that with this roll the crash from
https://issues.chromium.org/issues/333269270 does not occur.

2024-04-15 wellnhofer@aevum.de parser: Always decode entities in namespace URIs
2024-04-14 wellnhofer@aevum.de fuzz: Also set fuzzAllocFailed if a real allocation fails
2024-04-09 wellnhofer@aevum.de fuzz: Account for quadratic runtime in xmlXPathTranslateFunction
2024-04-09 wellnhofer@aevum.de error: Fix direct invocation of SAX error handlers
2024-04-09 wellnhofer@aevum.de save: Report malloc failure in xmlAttrSerializeTxtContent
2024-04-02 wellnhofer@aevum.de fuzz: Add a few more comments
2024-04-04 seiyan@ricsec.co.jp relaxng: Fix tree corruption in xmlRelaxNGParseNameClass
2024-04-05 wellnhofer@aevum.de xinclude: Don't try to fix base of non-elements
2024-04-05 wellnhofer@aevum.de SAX2: Also check URI length before resolving
2024-04-04 vtorri@outlook.fr meson: Initial commit
2024-04-02 wellnhofer@aevum.de string: Don't validate UTF-8 in xmlUTF8Strsub
2024-04-02 wellnhofer@aevum.de save: Handle invalid parent pointers in xhtmlNodeDumpOutput
2024-04-02 wellnhofer@aevum.de build: Disable support for compression libraries by default
2024-03-30 wellnhofer@aevum.de xinclude: Don't use xmlHasNsProp
2024-03-29 wellnhofer@aevum.de fuzz: Check node type before xmlDocSetRootElement
2024-03-29 wellnhofer@aevum.de Revert "tree: Only allow elements in xmlDocSetRootElement"
2024-03-29 wellnhofer@aevum.de tree: Ignore namespace with NULL href in xmlSearchNs
2024-03-29 wellnhofer@aevum.de tree: Don't coalesce text nodes in xmlAdd{Prev,Next}Sibling
2024-03-29 wellnhofer@aevum.de SAX2: Fix xmlSAX2EntityDecl with empty base
2024-03-28 wellnhofer@aevum.de SAX2: Optimize appending children
2024-03-28 wellnhofer@aevum.de tree: Document behavior if xmlSetTreeDoc fails
2024-03-28 wellnhofer@aevum.de tree: Optimize xmlInsertNode
2024-03-28 wellnhofer@aevum.de tree: Align xmlAddChild with other node insertion functions
2024-03-28 wellnhofer@aevum.de tree: Introduce xmlUnlinkNodeInternal
2024-03-28 wellnhofer@aevum.de examples: Don't leave temp files
2024-03-28 wellnhofer@aevum.de fuzz: Fix xmlSetProp in API fuzzer
2024-03-26 wellnhofer@aevum.de valid: Report malloc failure in xmlValidateOneElement
2024-03-26 wellnhofer@aevum.de fuzz: Restrict input size of API fuzzer
2024-03-26 wellnhofer@aevum.de fuzz: Restrict number of copies in API fuzzer
2024-03-26 wellnhofer@aevum.de html: Use binary search in htmlEntityValueLookup
2024-03-25 wellnhofer@aevum.de tree: Work on documentation
2024-03-24 wellnhofer@aevum.de fuzz: Enable float-divide-by-zero on OSS-Fuzz
2024-03-24 wellnhofer@aevum.de xinclude: Report malloc failure in xmlXIncludeAddNode
2024-03-22 wellnhofer@aevum.de tree: Fix uninitialized value in xmlSearchNsSafe
2024-03-22 wellnhofer@aevum.de ci: Support ASan in Docker container
2024-03-22 wellnhofer@aevum.de ci: Show config.log if configuration failed
2024-03-22 wellnhofer@aevum.de ci: Remove Python 2 job, update C89 job
2024-03-22 wellnhofer@aevum.de doc: Update Docker CI instructions
2024-03-22 wellnhofer@aevum.de ci: Update Docker container to Ubuntu 23.10
2024-03-22 wellnhofer@aevum.de ci: Add meson to Docker container
2024-03-22 wellnhofer@aevum.de fuzz: Fix namespaces after xmlDOMWrapRemoveNode
2024-03-22 wellnhofer@aevum.de SAX2: Report malloc failure in xmlSAX2AttributeNs
2024-03-22 wellnhofer@aevum.de xinclude: Report malloc failures in xmlXIncludeIncludeNode
2024-03-22 wellnhofer@aevum.de tree: Fix uninitialized value in xmlSearchNsByHrefSafe
2024-03-20 wellnhofer@aevum.de fuzz: Enable API fuzzer on OSS-Fuzz
2024-03-20 wellnhofer@aevum.de fuzz: Reorder API fuzzer ops
2024-03-20 wellnhofer@aevum.de fuzz: Check text nodes after merging
2024-03-19 wellnhofer@aevum.de valid: Check for NULL node->name in xmlSnprintfElements
2024-03-18 wellnhofer@aevum.de io: Allocate output buffer with XML_BUFFER_ALLOC_IO
2024-03-18 wellnhofer@aevum.de encoding: Don't shrink input too early in xmlCharEncOutput
2024-03-18 wellnhofer@aevum.de tree: Report malloc failures in attribute setters
2024-03-18 wellnhofer@aevum.de xinclude: Set errNo in xmlXIncludeErrMemory
2024-03-17 wellnhofer@aevum.de tree: Introduce xmlSearchNsSafe
2024-03-17 wellnhofer@aevum.de Revert "tree: Allocate XML namespace statically"
2024-03-17 wellnhofer@aevum.de save: Check for NULL node->name in xhtmlIsEmpty
2024-03-17 wellnhofer@aevum.de schemas: Fix ADD_ANNOTATION
2024-03-17 wellnhofer@aevum.de xmlreader: Fix memory leak in xmlTextReaderFreeProp
2024-03-16 wellnhofer@aevum.de valid: Deprecate internal validation functions
2024-03-16 wellnhofer@aevum.de fuzz: Move fuzzer options to environment variable
2024-03-15 wellnhofer@aevum.de fuzz: Add OSS-Fuzz build.sh
2024-03-15 wellnhofer@aevum.de fuzz: Add some comments in api.c
2024-02-29 wellnhofer@aevum.de fuzz: New tree API fuzzer
2024-03-15 wellnhofer@aevum.de tree: Tighten source doc check in xmlDOMWrapAdoptNode
2024-03-14 wellnhofer@aevum.de tree: Check destParent->doc in xmlDOMWrapCloneNode
2024-03-13 wellnhofer@aevum.de tree: Switch to xmlNodeSetDoc in xmlDOMWrapAdoptNode
2024-03-13 wellnhofer@aevum.de tree: Fix tree iteration in xmlDOMWrapRemoveNode
2024-03-12 wellnhofer@aevum.de tree: Don't abort early if malloc fails in DOM functions
2024-03-12 wellnhofer@aevum.de tree: Fix reallocation in xmlDOMWrapNSNormAddNsMapItem2
2024-03-12 wellnhofer@aevum.de tree: Set parent->last early in xmlDOMWrapCloneNode
2024-03-12 wellnhofer@aevum.de tree: Declare namespace on clone in xmlDOMWrapCloneNode
2024-03-12 wellnhofer@aevum.de tree: Don't free linked DOM namespaces in error case
2024-03-12 wellnhofer@aevum.de tree: Report malloc failure in xmlDOMWrapCloneNode
2024-03-11 wellnhofer@aevum.de tree: Refactor text node updates
2024-03-11 wellnhofer@aevum.de tree: Refactor node insertion
2024-03-11 wellnhofer@aevum.de tree: Refactor element creation and parsing of attribute values
2024-03-05 wellnhofer@aevum.de tree: Simplify xmlNodeGetContent, xmlBufGetNodeContent
2024-03-11 wellnhofer@aevum.de buf: Don't use default buffer size for small strings
2024-03-08 wellnhofer@aevum.de valid: Set document on dummmy element declaration
2024-03-07 wellnhofer@aevum.de tree: Work on documentation
2024-03-06 wellnhofer@aevum.de string: Fix xmlStrncatNew(NULL, "")
2024-03-05 wellnhofer@aevum.de malloc-fail: Stop using xmlSplitQName2
2024-03-05 wellnhofer@aevum.de malloc-fail: Report in xmlAddAttributeDecl
2024-03-05 wellnhofer@aevum.de malloc-fail: Fix erroneous report in xmlNodeGetBaseSafe
2024-03-04 wellnhofer@aevum.de malloc-fail: Avoid use-after-free in xmlAddChild
2024-03-04 wellnhofer@aevum.de malloc-fail: Fix memory leak in xmlNewNodeEatName
2024-03-04 wellnhofer@aevum.de malloc-fail: Check for NULL pointer in xmlSaveNotation*
2024-03-04 wellnhofer@aevum.de malloc-fail: Fix use-after-free in xmlBufBackToBuffer
2024-03-05 wellnhofer@aevum.de entities: Don't allow null name in xmlNewEntity
2024-03-05 wellnhofer@aevum.de entities: Check for illegal entity types in xmlAddEntity
2024-03-06 wellnhofer@aevum.de io: Report more malloc failures when writing to output buffer
2024-03-06 wellnhofer@aevum.de html: Fix quadratic behavior in htmlNodeDump
2024-03-05 wellnhofer@aevum.de save: Report malloc failure in xmlAttrSerializeTxtContent
2024-03-04 wellnhofer@aevum.de save: Cast return code of xmlBufNodeDump
2024-03-05 wellnhofer@aevum.de save: Check for output buffer errors
2024-03-03 wellnhofer@aevum.de save: Add range check for level in xmlNodeDump
2024-03-15 wellnhofer@aevum.de valid: Check for NULL text content in xmlValidateOneElement
2024-03-14 wellnhofer@aevum.de valid: Check for elem->name in xmlIsID
2024-03-06 wellnhofer@aevum.de valid: Fix some return codes after errors
2024-03-05 wellnhofer@aevum.de valid: Eliminate xmlCtxtGetDtdElementDesc
2024-03-05 wellnhofer@aevum.de valid: Report malloc failure in legacy DTD serialization
2024-03-05 wellnhofer@aevum.de valid: Fix hash removal in xmlRemoveRef
2024-03-05 wellnhofer@aevum.de valid: Don't report errors with null context
2024-03-02 wellnhofer@aevum.de valid: Remove id before updating attribute type
2024-03-01 wellnhofer@aevum.de valid: Fix id handling in xmlValidateDtd
2024-03-02 wellnhofer@aevum.de valid: Reset attribute in xmlFreeID
2024-03-01 wellnhofer@aevum.de valid: Rework checks in xmlValidateOneElement
2024-02-29 wellnhofer@aevum.de valid: Check element type in xmlIsID
2024-02-29 wellnhofer@aevum.de valid: Change error code to XML_ERR_ARGUMENT
2024-03-08 wellnhofer@aevum.de tree: Check return value of xmlNodeAddContent
2024-03-07 wellnhofer@aevum.de tree: Fix error return in xmlGetPropNodeValueInternal
2024-03-07 wellnhofer@aevum.de tree: Prefer xmlGetPropNodeInternal over xmlHasNsProp
2024-03-06 wellnhofer@aevum.de tree: Report malloc failure in xmlAddNextSibling
2024-03-02 wellnhofer@aevum.de tree: Rewrite xmlSetTreeDoc
2024-03-05 wellnhofer@aevum.de tree: Remove more unused node types
2024-03-06 wellnhofer@aevum.de tree: Report more malloc failures
2024-03-04 wellnhofer@aevum.de tree: Fix adding ids in xmlNewPropInternal
2024-02-29 wellnhofer@aevum.de valid: Rework xmlAddID
2024-03-05 wellnhofer@aevum.de tree: Improve argument check in xmlTextConcat
2024-03-05 wellnhofer@aevum.de tree: Remove unused node types
2024-03-05 wellnhofer@aevum.de tree: Make namespace comparison more consistent
2024-03-05 wellnhofer@aevum.de tree: Don't allow NULL name in xmlSetNsProp
2024-03-04 wellnhofer@aevum.de tree: Allocate XML namespace statically
2024-03-05 wellnhofer@aevum.de tree: Rework xmlNodeListGetString
2024-02-28 wellnhofer@aevum.de tree: Rework xmlTextMerge
2024-02-28 wellnhofer@aevum.de tree: Rework xmlNodeSetName
2024-02-27 wellnhofer@aevum.de tree: Simplify xmlAddChild with text parent
2024-02-27 wellnhofer@aevum.de tree: Don't allow misuse of xmlAddChild
2024-02-27 wellnhofer@aevum.de tree: Fix xmlAddPropSibling with duplicate attributes
2024-02-27 wellnhofer@aevum.de tree: Fix indentation in xmlAddPropSibling
2024-02-27 wellnhofer@aevum.de tree: Fix xmlAddSibling with last sibling
2024-02-27 wellnhofer@aevum.de tree: Move type check in xmlAddChild
2024-02-23 wellnhofer@aevum.de tree: Fix xmlDocSetRootElement with multiple top-level elements
2024-02-22 wellnhofer@aevum.de tree: Only allow elements in xmlDocSetRootElement
2024-02-22 wellnhofer@aevum.de tree: Disallow setting content of entity reference nodes
2024-02-22 wellnhofer@aevum.de tree: Rework xmlReconciliateNs
2024-02-22 wellnhofer@aevum.de tree: Unlink DTD in xmlStaticCopyNodeList
2024-02-22 wellnhofer@aevum.de tree: Unlink DTD in xmlFreeNodeList
2024-03-12 wellnhofer@aevum.de parser: Fix detection of duplicate attributes in XML namespace
2024-03-10 wellnhofer@aevum.de fuzz: Improve README
2024-03-03 wellnhofer@aevum.de catalog: Fetch XML catalog before dumping
2024-03-02 bgilbert@backtick.net schemas: fix spurious warning about truncated snprintf output
2024-02-29 maks.mishinFZ@gmail.com xmlschemastypes: Remove unreachable if statement
2024-02-29 maks.mishinFZ@gmail.com relaxng: Remove useless if statement
2024-02-26 wellnhofer@aevum.de xmlreader: Fix xmlTextReaderConstEncoding
2024-02-26 wellnhofer@aevum.de html: Regression test for #696
2024-02-21 wellnhofer@aevum.de tree: Check for integer overflow in xmlStringGetNodeList
2024-02-20 wellnhofer@aevum.de SAX2: Report malloc failure in xmlCheckDefaultedAttributes
2024-02-19 wellnhofer@aevum.de http: Improve error message for HTTPS redirects
2024-02-16 wellnhofer@aevum.de save: Don't write directly to internal buffer
2024-02-14 wellnhofer@aevum.de dict: Include unistd.h for getentropy

Bug: 333269270
Bug: 934413
Change-Id: Ic17275251ad033e13ddfce40ca9523045410878f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5455754
Reviewed-by: David Baron <dbaron@chromium.org>
Commit-Queue: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1289274}
44 files changed
tree: 18c9b6be390947a89be87c01c7aa3d9c4bc4a66b
  1. android_webview/
  2. apps/
  3. ash/
  4. base/
  5. build/
  6. build_overrides/
  7. buildtools/
  8. cc/
  9. chrome/
  10. chromecast/
  11. chromeos/
  12. codelabs/
  13. components/
  14. content/
  15. courgette/
  16. crypto/
  17. dbus/
  18. device/
  19. docs/
  20. extensions/
  21. fuchsia_web/
  22. gin/
  23. google_apis/
  24. google_update/
  25. gpu/
  26. headless/
  27. infra/
  28. ios/
  29. ipc/
  30. media/
  31. mojo/
  32. native_client_sdk/
  33. net/
  34. pdf/
  35. ppapi/
  36. printing/
  37. remoting/
  38. rlz/
  39. sandbox/
  40. services/
  41. skia/
  42. sql/
  43. storage/
  44. styleguide/
  45. testing/
  46. third_party/
  47. tools/
  48. ui/
  49. url/
  50. webkit/
  51. .clang-format
  52. .clang-tidy
  53. .clangd
  54. .eslintrc.js
  55. .git-blame-ignore-revs
  56. .gitallowed
  57. .gitattributes
  58. .gitignore
  59. .gitmodules
  60. .gn
  61. .mailmap
  62. .rustfmt.toml
  63. .vpython3
  64. .yapfignore
  65. ATL_OWNERS
  66. AUTHORS
  67. BUILD.gn
  68. CODE_OF_CONDUCT.md
  69. codereview.settings
  70. CPPLINT.cfg
  71. DEPS
  72. DIR_METADATA
  73. LICENSE
  74. LICENSE.chromium_os
  75. OWNERS
  76. PRESUBMIT.py
  77. PRESUBMIT_test.py
  78. PRESUBMIT_test_mocks.py
  79. README.md
  80. WATCHLISTS
README.md

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure.

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.

If you found a bug, please file it at https://crbug.com/new.