[LIBXML2] Update to version 2.10.2. CORE-17766

This commit is contained in:
Thomas Faber 2022-11-20 10:42:25 -05:00
parent 0d5a4166a4
commit 1dbad942d8
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
5 changed files with 28 additions and 9 deletions

View file

@ -9604,7 +9604,8 @@ xmlDOMWrapCloneNode(xmlDOMWrapCtxtPtr ctxt,
/*
* Attributes (xmlAttr).
*/
clone = (xmlNodePtr) xmlMalloc(sizeof(xmlAttr));
/* Use xmlRealloc to avoid -Warray-bounds warning */
clone = (xmlNodePtr) xmlRealloc(NULL, sizeof(xmlAttr));
if (clone == NULL) {
xmlTreeErrMemory("xmlDOMWrapCloneNode(): allocating an attr-node");
goto internal_error;