diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2012-10-12 13:20:12 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2012-10-12 13:20:12 +0000 |
commit | 832a9c1f8620d389cbe8862c2dd189b3b4061542 (patch) | |
tree | 5b34afd999494f04b7bf713835e3739ac8b9f532 /sys/arch/amd64/stand | |
parent | 9bb324f9ade4d6e1d5a7f4b8b5be6a1357e0cc5c (diff) |
fix infinite loops on regexps that match the empty word, which is
especially bad during runtime as we trap ^C.
For instance ${A:C/-*//g}. Problem found by rpe@
Do the same as other modern tools: advance by one char and repeat, so
that there's at most one empty word match at each position.
okay millert@
Diffstat (limited to 'sys/arch/amd64/stand')
0 files changed, 0 insertions, 0 deletions