summaryrefslogtreecommitdiff
path: root/sys/crypto/chachapoly.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2020-07-22 13:29:06 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2020-07-22 13:29:06 +0000
commit265f20b5316bb6d3e9ebf7ede18b979d0a0e50a1 (patch)
tree08bfc24b6c2c4182a80842f2f33f5a12ed391e86 /sys/crypto/chachapoly.c
parent0bdb4abd39da748531cd5caf59434d40c2630c71 (diff)
Avoid running out of memory with query-replace-regex ^
Choosing ! (replace rest) never advances beyond the current line and keeps inserting the replacement test, and mg eventually runs out of memory. Patch from Mark Willson with minor stylistic tweaks. Looks good to Hiltjo Posthuma who would have preferred making forward replacing on empty lines work. Mark argued that this makes it behave consistently with the current behaviour when searching for ^ and the point at the beginning of a non-empty line in which case the cursor does not move either. Also tested by krw
Diffstat (limited to 'sys/crypto/chachapoly.c')
0 files changed, 0 insertions, 0 deletions