]> git.eshelyaron.com Git - emacs.git/commit
Avoid slowdowns in xmltok-scan-attributes
authorGregory Heytings <gregory@heytings.org>
Sat, 18 Mar 2023 10:49:29 +0000 (10:49 +0000)
committerGregory Heytings <gregory@heytings.org>
Sat, 18 Mar 2023 10:51:32 +0000 (11:51 +0100)
commit0eddfa28ebdba3b1e5b3249416f14ea67bd41e3c
tree2fadbac295e64fc962f81e25853ba35cd2dde91b
parent647c6bf2a6ce7113de5dae251633eaba27627a62
Avoid slowdowns in xmltok-scan-attributes

* lisp/nxml/xmltok.el (xmltok-scan-attributes): Limit the search
to 10000 characters, to avoid slowdowns due to the quadratic
complexity of the regexp.  Suggested by Stefan Monnier.
lisp/nxml/xmltok.el