Roll libxml from f19a9510 to c444c96e

This CL adds an additional patch on top of libxml which
removes calls to getentropy() and BCryptGetRandom() because they
aren't implemented or supported on certain platforms based on the trybot
results I saw. I will try upstreaming a configure script flag soon to replace
this patch file. This patch is safe because it reverts the random number
generation behavior before a recent libxml upstream patch.

2024-02-13 wellnhofer@aevum.de parser: Report OOM errors even after parser was stopped
2024-02-13 wellnhofer@aevum.de valid: Fix xmlAddIDSafe in "streaming" mode
2024-02-13 wellnhofer@aevum.de autotools: Remove useless substitution
2024-02-13 wellnhofer@aevum.de parser: Fix column number in attribute values
2024-02-12 wellnhofer@aevum.de xmllint: Return error code if XPath returns empty nodeset
2024-02-11 wellnhofer@aevum.de catalog: Remove Windows hack
2024-02-11 wellnhofer@aevum.de examples: Readd xpath1 test
2023-10-15 wellnhofer@aevum.de xmlreader: Clean up error handling
2024-02-06 wellnhofer@aevum.de xmlreader: Make xmlTextReaderValidateEntity return an error code
2024-02-06 wellnhofer@aevum.de valid: Fix another use-after-free in xmlAddIDSafe
2024-02-05 wellnhofer@aevum.de xpath: Report malloc failure in xmlXPathTranslateFunction
2023-10-14 wellnhofer@aevum.de [CVE-2024-25062] xmlreader: Don't expand XIncludes when backtracking
2024-02-04 wellnhofer@aevum.de c14n: Improve error handling
2024-02-04 wellnhofer@aevum.de valid: Fix use-after-free in xmlAddIDSafe
2024-02-01 wellnhofer@aevum.de fuzz: Reenable malloc failure check when serializing
2024-02-01 wellnhofer@aevum.de valid: Deprecate old DTD serialization API
2024-02-01 wellnhofer@aevum.de save: Move DTD serialization code to xmlsave.c
2024-02-01 wellnhofer@aevum.de fuzz: Don't check for malloc failures when serializing
2024-02-01 wellnhofer@aevum.de tree: Fix error condition in xmlNodeListGetString
2024-02-01 wellnhofer@aevum.de Update .gitignore
2024-02-01 wellnhofer@aevum.de io: Report malloc failure in xmlOutputBufferWrite
2024-01-30 wellnhofer@aevum.de doc: Mark `xmllint --xpath` as experimental
2024-01-30 wellnhofer@aevum.de doc: Update xmllint man page after fixing #180
2024-01-30 wellnhofer@aevum.de parser: Fix crash in xmlParseInNodeContext with HTML documents
2024-01-26 wellnhofer@aevum.de SAX2: Make sure that OOM errors aren't overwritten
2024-01-25 wellnhofer@aevum.de dict: Fix warnings with older clang
2024-01-23 wellnhofer@aevum.de parser: Make experimental input API private
2024-01-22 wellnhofer@aevum.de parser: Report fatal error if document entity couldn't be loaded
2024-01-17 wellnhofer@aevum.de xpath: Fix return of empty node-set in xmlXPathNodeCollectAndTest
2024-01-15 wellnhofer@aevum.de tests: Add test for issue #661
2024-01-11 wellnhofer@aevum.de tests: Remove testOOM
2024-01-10 wellnhofer@aevum.de autotools: Readd --with-xptr-locs configuration option
2024-01-10 wellnhofer@aevum.de xpath: Report malloc failure in xmlXPtrEvalXPtrPart
2024-01-10 wellnhofer@aevum.de gitlab-ci: Disable Python tests on MinGW for now
2024-01-07 wellnhofer@aevum.de SAX2: Limit entity URI length to 2000 bytes
2024-01-07 wellnhofer@aevum.de parser: Account for full size of non-well-formed entities
2024-01-02 wellnhofer@aevum.de parser: Pop inputs if parsing DTD failed
2024-01-10 wellnhofer@aevum.de parser: Handle NOCDATA properly when expanding entities
2024-01-07 wellnhofer@aevum.de fuzz: Cap URL size
2024-01-07 wellnhofer@aevum.de fuzz: Add missing include
2024-01-07 wellnhofer@aevum.de parser: Fix quadratic behavior when copying entities
2024-01-05 wellnhofer@aevum.de writer: Implement xmlTextWriterClose
2024-01-05 wellnhofer@aevum.de parser: Avoid duplicate namespace errors
2024-01-05 wellnhofer@aevum.de parser: Add XML_PARSE_NO_XXE parser option
2024-01-05 wellnhofer@aevum.de parser: Synchronize more options
2024-01-05 wellnhofer@aevum.de parser: Mark 'token' member as unused in xmlParserCtxt
2024-01-04 wellnhofer@aevum.de parser: Rework xmlCtxtParseDocument
2024-01-04 wellnhofer@aevum.de fuzz: Abort on invalid UTF-8
2023-12-22 jazzinghen@gmail.com Set LIBXML2_FOUND if it has been properly configured
2024-01-04 wellnhofer@aevum.de parser: Remove remnants of runtime debugging feature
2024-01-04 wellnhofer@aevum.de parser: Make xmlParseContent more useful
2024-01-04 wellnhofer@aevum.de tests: Move away from global error handlers
2024-01-04 wellnhofer@aevum.de error: Make xmlFormatError public
2024-01-03 wellnhofer@aevum.de parser: Remove xmlErrEncodingInt
2024-01-03 wellnhofer@aevum.de fuzz: Add assertion in xmlCopyCharMultibyte
2024-01-03 wellnhofer@aevum.de parser: Clear invalid entity content
2024-01-04 wellnhofer@aevum.de fuzz: Disable catalogs
2024-01-02 wellnhofer@aevum.de save: Report more malloc failures
2024-01-02 wellnhofer@aevum.de fuzz: Abort on internal errors
2024-01-02 wellnhofer@aevum.de valid: Fix some error codes
2024-01-02 wellnhofer@aevum.de encoding: Check whether encoding handlers support input/output
2024-01-02 wellnhofer@aevum.de parser: Fix buffer size checks
2024-01-02 wellnhofer@aevum.de parser: Convert some "internal errors" to meaningful codes
2024-01-02 wellnhofer@aevum.de SAX2: Enforce size limit in xmlSAX2Text with XML_PARSE_HUGE
2024-01-02 wellnhofer@aevum.de parser: Lower maximum entity nesting depth
2024-01-02 wellnhofer@aevum.de parser: Set depth limit to 2048 with XML_PARSE_HUGE
2023-09-07 wellnhofer@aevum.de parser: Implement xmlCtxtSetOptions
2023-09-07 wellnhofer@aevum.de parser: Always prefer option members over bitmask
2023-09-06 wellnhofer@aevum.de parser: Don't modify SAX2 handler if XML_PARSE_SAX1 is set
2023-12-30 wellnhofer@aevum.de parser: Rework parsing of attribute and entity values
2024-01-02 wellnhofer@aevum.de save: Output U+FFFD replacement characters
2023-12-29 wellnhofer@aevum.de parser: Simplify entity size accounting
2023-12-29 wellnhofer@aevum.de parser: Support namespace scope in NsData struct
2023-12-29 wellnhofer@aevum.de parser: Simplify error handling when parsing entities
2023-12-29 wellnhofer@aevum.de parser: Move cleanup of element stacks to xmlParseContent
2023-12-29 wellnhofer@aevum.de parser: Avoid unwanted expansion of parameter entities
2023-12-29 wellnhofer@aevum.de parser: Fix XML_ERR_UNSUPPORTED_ENCODING errors
2023-12-29 wellnhofer@aevum.de io: Always forward IO errors to global handler
2023-12-29 wellnhofer@aevum.de parser: Remove extraneous error message
2023-12-27 wellnhofer@aevum.de parser: New input API
2023-12-27 wellnhofer@aevum.de parser: Downgrade XML_ERR_UNSUPPORTED_ENCODING to warning
2023-12-27 wellnhofer@aevum.de parser: More refactoring of entity parsing
2023-12-27 wellnhofer@aevum.de parser: Fix encoding handling in xmlParserInputBufferCreateIO
2023-12-27 wellnhofer@aevum.de parser: Always copy content from entity to target.
2023-12-27 wellnhofer@aevum.de parser: Simplify control flow in xmlParseReference
2023-12-27 wellnhofer@aevum.de parser: Remove xmlSetEntityReferenceFunc feature
2023-12-27 wellnhofer@aevum.de parser: More refactoring of entity loading
2023-12-27 wellnhofer@aevum.de parser: Push general entity input streams on the stack
2023-12-26 wellnhofer@aevum.de parser: Mark more parser context members as unused
2023-12-26 wellnhofer@aevum.de parser: Move progressive flag into input struct
2023-12-26 wellnhofer@aevum.de parser: Remove remaining ctxt->instate checks
2023-12-26 wellnhofer@aevum.de parser: Fix in-parameter-entity and in-external-dtd checks
2023-12-28 wellnhofer@aevum.de html: Abort earlier on fatal errors
2023-12-28 wellnhofer@aevum.de SAX2: Fix error code
2023-12-28 wellnhofer@aevum.de uri: Keep fragment intact when resolving filesystem paths
2023-12-26 wellnhofer@aevum.de xpath: Rewrite substring-before and substring-after
2023-12-26 wellnhofer@aevum.de tests: Remove unneeded error formatting code
2023-12-28 wellnhofer@aevum.de xinclude: Only set xml:base if necessary
2023-12-26 wellnhofer@aevum.de xinclude: Allow empty nodesets
2023-12-26 wellnhofer@aevum.de parser: Fix general entity parsing
2023-12-25 wellnhofer@aevum.de parser: Rework general entity parsing
2023-12-24 wellnhofer@aevum.de io: Fix close error handling
2023-12-24 wellnhofer@aevum.de io: Fix read/write error handling
2023-12-23 wellnhofer@aevum.de io: More refactoring and unescaping fixes
2023-12-23 wellnhofer@aevum.de error: Reenable full error reports to default handler
2023-12-23 wellnhofer@aevum.de parser: Mark 'length' member of xmlParserInput as unused
2023-12-23 wellnhofer@aevum.de parser: Stop using 'directory' struct member
2023-12-25 wellnhofer@aevum.de parser: Make XML_IO_NETWORK_ATTEMPT behave as before
2023-12-23 wellnhofer@aevum.de io: Move some code from xmlIO.c to parserInternals.c
2023-12-23 wellnhofer@aevum.de Fix filename and URI handling
2023-12-22 wellnhofer@aevum.de uri: Clean up special parsing modes
2023-12-22 wellnhofer@aevum.de xinclude: Rework xml:base fixup
2023-12-22 wellnhofer@aevum.de xinclude: Report to xmlGenericError
2023-12-22 wellnhofer@aevum.de parser: Also set document properties when push parsing
2023-12-23 wellnhofer@aevum.de include: Move non-generated parts from xmlversion.h.in
2023-12-21 wellnhofer@aevum.de Update NEWS
2023-12-21 wellnhofer@aevum.de io: Remove support for HTTP POST
2023-12-24 wellnhofer@aevum.de dict: Move local RNG state to global state
2023-12-24 wellnhofer@aevum.de dict: Get random seed from system PRNG
2023-12-23 wellnhofer@aevum.de malloc-fail: Fix erroneous report in xmlStringGetNodeList
2023-12-21 wellnhofer@aevum.de doc: Improve documentation of error handlers
2023-12-21 wellnhofer@aevum.de runtest: Fix return code in rngTest
2023-12-21 wellnhofer@aevum.de tests: Try to fix RelaxNG test cases
2023-12-21 wellnhofer@aevum.de html: Don't close fd in htmlCtxtReadFd
2023-12-20 wellnhofer@aevum.de io: Don't use "-" to read from stdin
2023-12-20 wellnhofer@aevum.de io: Rework initialization
2023-12-20 wellnhofer@aevum.de io: Rearrange code
2023-12-20 wellnhofer@aevum.de parser: Rename xmlErrParser to xmlCtxtErr
2023-12-19 wellnhofer@aevum.de parser: Remove xmlErrEncoding
2023-12-19 wellnhofer@aevum.de io: Consolidate error messages
2023-12-19 wellnhofer@aevum.de io: Report IO errors through xmlCtxtErrIO
2023-12-19 wellnhofer@aevum.de xzlib: Fix harmless unsigned integer overflow
2023-12-19 wellnhofer@aevum.de io: Always use unbuffered input
2023-12-19 wellnhofer@aevum.de io: Fix detection of compressed streams
2023-12-19 wellnhofer@aevum.de io: Pass error codes from xmlFileOpenReal to xmlNewInputFromFile
2023-12-19 wellnhofer@aevum.de io: Rework default callbacks
2023-12-18 wellnhofer@aevum.de error: Stop printing some errors by default
2023-12-18 wellnhofer@aevum.de error: Remove xmlSimpleError
2023-12-18 wellnhofer@aevum.de xmllint: Don't use xmlGenericError
2023-12-18 wellnhofer@aevum.de runtest: Test with per-context error handlers
2023-12-18 wellnhofer@aevum.de regexp: Improve error handling
2023-12-18 wellnhofer@aevum.de misc: Improve error handling
2023-12-18 wellnhofer@aevum.de save: Improve error handling
2023-12-18 wellnhofer@aevum.de schematron: Improve error handling
2023-12-18 wellnhofer@aevum.de relaxng: Improve error handling
2023-12-18 wellnhofer@aevum.de debug: Improve error handling
2023-12-18 wellnhofer@aevum.de c14n: Improve error handling
2023-12-18 wellnhofer@aevum.de catalog: Improve error handling
2023-12-18 wellnhofer@aevum.de schemas: Improve error handling
2023-12-18 wellnhofer@aevum.de reader: Simplify error handling
2023-12-18 wellnhofer@aevum.de xinclude: Improve error handling
2023-12-18 wellnhofer@aevum.de xpath: Improve error handling
2023-12-18 wellnhofer@aevum.de parser: Improve error handling
2023-12-18 wellnhofer@aevum.de error: Refactor error reporting
2023-12-20 mike.dalessio@gmail.com Makefile.am: omit $(top_builddir) from DEPS and LDADDS
2023-12-20 wellnhofer@aevum.de xpath: Don't free nodes of XSLT result value trees
2023-12-20 wellnhofer@aevum.de malloc-fail: Report malloc failure in xmlXPathNumberFunction
2023-12-16 wellnhofer@aevum.de valid: Fix handling of enumerations
2023-12-15 wellnhofer@aevum.de malloc-fail: Report malloc failure in xmlXPathTranslateFunction
2023-12-15 wellnhofer@aevum.de malloc-fail: Fix OOM error handling in xmlSwitchInputEncoding
2023-12-14 wellnhofer@aevum.de save: Fix build --without-html
2023-12-14 wellnhofer@aevum.de parser: Fix build --without-output
2023-12-14 wellnhofer@aevum.de Fix compiler warnings with disabled modules
2023-12-13 wellnhofer@aevum.de parser: Allow recovery in xmlParseInNodeContext
2023-12-13 wellnhofer@aevum.de encoding: Support ASCII in xmlLookupCharEncodingHandler
2023-12-13 wellnhofer@aevum.de parser: Don't grow or shrink pull parser memory buffers
2023-12-13 wellnhofer@aevum.de python: Fix callback signature
2023-12-13 wellnhofer@aevum.de malloc-fail: Fix use-of-uninitialized-value in xmlParseConditionalSections
2023-12-13 wellnhofer@aevum.de malloc-fail: Fix memory leak in xmlNodeGetBaseSafe
2023-12-12 wellnhofer@aevum.de io: Fix memory lifetime issue with input buffers
2023-12-12 wellnhofer@aevum.de doc: Add notes about breaking ABI in MAINTAINERS.md
2023-12-12 wellnhofer@aevum.de malloc-fail: Don't truncate parser input buffer
2023-12-12 wellnhofer@aevum.de malloc-fail: Fix null deref in xmlXPathTranslateFunction
2023-12-12 wellnhofer@aevum.de malloc-fail: Fix erroneous reports in xmlNodeListGetString
2023-12-10 wellnhofer@aevum.de fuzz: Enable value profile
2023-12-10 wellnhofer@aevum.de html: Report malloc failures
2023-12-10 wellnhofer@aevum.de fuzz: Check malloc failure reports in XML fuzzers
2023-12-10 wellnhofer@aevum.de writer: Don't call SAX error handler directly
2023-12-10 wellnhofer@aevum.de valid: Report malloc failures
2023-12-10 wellnhofer@aevum.de xmlreader: Report malloc failures
2023-12-10 wellnhofer@aevum.de xinclude: Report malloc failures
2023-12-10 wellnhofer@aevum.de SAX2: Report malloc failures

Fixed: 325094430
Bug: 934413
Change-Id: I3c2a81b06a229e4597b2023d650ee32132321588
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5162147
Auto-Submit: Joey Arhar <jarhar@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Commit-Queue: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1260630}
NOKEYCHECK=True
GitOrigin-RevId: 7d5a313f1aa52a85503699a4b4d37f20a05529d1
75 files changed