]> git.ipfire.org Git - thirdparty/gettext.git/commit
libxml: Fix an ISO C undefined behaviour. master
authorBruno Haible <bruno@clisp.org>
Wed, 29 Jul 2026 22:57:30 +0000 (00:57 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 29 Jul 2026 22:58:22 +0000 (00:58 +0200)
commit62760d707d66f75601f78afba0f67872b8d59155
treebbe0022913eecb6c73350e8177a9b63227b88298
parent605abf382fe66c2f4325cb673a3166ed72cdbf2e
libxml: Fix an ISO C undefined behaviour.

ISO C 23 ยง 6.5.7.(10) has requirements for pointer subtraction.

Found by use of Fil-C.

* gnulib-local/lib/libxml/parser.c (xmlParseStartTag2): Avoid invalid pointer
subtraction.
gnulib-local/lib/libxml/parser.c