]> git.neil.brown.name Git - edlib.git/commit
emacs-search: be careful to avoid infinite loop.
authorNeilBrown <neil@brown.name>
Sun, 27 Aug 2023 00:16:42 +0000 (10:16 +1000)
committerNeilBrown <neil@brown.name>
Sun, 27 Aug 2023 03:33:13 +0000 (13:33 +1000)
commit11e569a4e8437910ca163fdceecc91a4789120f4
treee1b923eb0456623516f7e10a311ffc7255a8c61c
parentacc9a0a97aa8e10a0f294e56404ff7f8fecccacc
emacs-search: be careful to avoid infinite loop.

Assuming that 'm' moved if length > 1 isn't entirely safe.
It *should* be the case, but protecting against infinite loops
deserves belt *and* braces.

So add some extra checks, and test for a case that currently causes an
infinite loop

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
emacs-search.c
lib-search.c
tests.d/00-basic