]> git.ipfire.org Git - thirdparty/gettext.git/commit
libxml: Fix possible null pointer access (regression 2023-05-26).
authorBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 23:21:57 +0000 (01:21 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 23:21:57 +0000 (01:21 +0200)
commitfb24c965dbd4145d6757f7e2aa65771b4bc08bab
treebe46fea560dbe3fc69f9847581abe942d1cbced3
parent36cc99cdc6c58e81a4e00a80315774fe5c7e299c
libxml: Fix possible null pointer access (regression 2023-05-26).

Pinpointed by gcc 13 warning:
warning: dereference of NULL ‘clone’ [CWE-476] [-Wanalyzer-null-dereference]

* gnulib-local/lib/libxml/tree.c (xmlDOMWrapCloneNode): Assign clone from
cloneAttr.
gnulib-local/lib/libxml/tree.c