]> git.eshelyaron.com Git - emacs.git/commit
Fix replace-in-string infloop with empty pattern string (bug#43598)
authorMattias Engdegård <mattiase@acm.org>
Fri, 25 Sep 2020 11:15:42 +0000 (13:15 +0200)
committerMattias Engdegård <mattiase@acm.org>
Fri, 25 Sep 2020 11:15:42 +0000 (13:15 +0200)
commit8a253a96a0db4dd585ab787345657d952c7babec
tree45e713e572ea53282d6b5141d685f1c178b761a2
parentd964375ad3bc0ec3edbce0bfcf72a0a0d7dda426
Fix replace-in-string infloop with empty pattern string (bug#43598)

* lisp/subr.el (replace-in-string): Raise an error if FROMSTRING is
empty.
* test/lisp/subr-tests.el (replace-in-string): Add test case.
lisp/subr.el
test/lisp/subr-tests.el