]> git.kaiwu.me - njs.git/commit
XML: fixed XMLAttr object.
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 22 Nov 2025 00:32:15 +0000 (16:32 -0800)
committerDmitry Volyntsev <xeioexception@gmail.com>
Tue, 25 Nov 2025 23:36:16 +0000 (15:36 -0800)
commit0dec770faa43209b6269f266ac70b154df5fc89d
tree2b477818c29383e4d2e5ffdc07388d0571f945a3
parent422b4c3b8c5775c13026ca42c1cc199743ed1f0b
XML: fixed XMLAttr object.

Pointer to xmlAttr to which XMLAttr used to point might become invalid
when the parent XMLNode was modified.

The fix is to hold a pointer to xmlNode.
external/njs_xml_module.c
external/qjs_xml_module.c
test/xml/xml.t.mjs