]> git.eshelyaron.com Git - emacs.git/commit
Avoid regexp stack overflow in GDB string matching (bug#22149)
authorMattias Engdegård <mattiase@acm.org>
Fri, 13 Mar 2020 18:51:02 +0000 (19:51 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sat, 14 Mar 2020 08:32:29 +0000 (09:32 +0100)
commit7195ea7532f4b2e05f168da823d9aed2401267cf
treea27d64b50a7c0eec26785478973e02c83458acde
parent6bdb561a3bafa0623da30e33b4a1dc291370218b
Avoid regexp stack overflow in GDB string matching (bug#22149)

* lisp/progmodes/gdb-mi.el (gdb--string-regexp):
Swap the or-clauses so that the rarely matching one comes first.
This avoids a build-up of backtrack points on the regexp stack.
lisp/progmodes/gdb-mi.el