Age | Commit message (Collapse) | Author |
|
|
|
ok tobias@
|
|
ok tobias@
|
|
Discussed with jca@.
|
|
ok deraadt
|
|
which i have put in that order). this is not important, but helps look
for outliers which might be strange. it hints that "ioctl" should be
reassessed in a few places, to see if "tty" is better; that "unix" may
be used in some places where "route" could now work.
|
|
|
|
access in case it is exploited. tame with "stdio wpath rpath cpath"
seesms to covers all usage cases, except -i performs a fchmod() on the
in-place file, so conditionally also needs "fattr".
ok sthen
|
|
|
|
ok tedu miod
|
|
ok jasper@
|
|
|
|
|
|
|
|
feedback/ok deraadt@ millert@
|
|
function should be treated as a single negation. From FreeBSD
via Liviu Daia.
|
|
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
|
|
to size_t to avoid overflow after allocation success
ok guenther doug
|
|
superflous '*' after '/*' and adding blank after terminating '$'.
Also eases parsing of the lines by simple awk scripts.
Aesthetic approval from tedu@.
|
|
of a diff from Sebastien Marie to prevent a crash found by Sebastien
with the afl fuzzer.
|
|
clearer and avoid a crash on 'g;P' found by Sebastien Marie with
the afl fuzzer.
|
|
|
|
|
|
with our actual implementation, which also agrees with POSIX;
triggered by guenther@'s answer to a question from chrisz@;
ok chrisz@ guenther@
|
|
detect potential integer.
ok doug
|
|
|
|
is enough;
|
|
|
|
|
|
|
|
instead, move the description of this mechanism into the general SED
FUNCTIONS section;
|
|
with other ugly hack (.br): at least this way we can whack a ton of Pp, and
it feels not quite as wrong;
while here, fix Em abuse by using Ic for functions and Ar for argument names;
i also fixed up the text of "s" a little to make it read better;
|
|
ok krw okan
|
|
issues regarding the replacement of zero-length strings.
This commit brings back rev. 1.16, but without the regression that
forced the backout: No NUL bytes will be output now, not even when
the input file lacks a trailing newline character and there is a
zero-length match at the end.
OK otto@ deraadt@;
and naddy@ (who originally found the regression) checked that
the regression is indeed fixed.
|
|
When the input does not end in a trailing newline character
and there is an empty match at the end, the new code adds
a spurious '\0' character.
I have a fix, but otto@ prefers backout and full re-evaluation
after release.
|
|
lines and simplifying it by removing the switch statement implementing
/g, /1, and /2 separately and repetitively.
The idea to make the loop control variable slen, i.e. the length of the
string remaining to be processed, signed, and stay in the loop even when
slen == 0 (i.e. at the end of the string), lifted from FreeBSD by otto@.
On i386, process.o shrinks by 440 bytes, and the sed binary by 23 bytes.
This fixes multiple aspects of the replacement of multiple (/g) or
specific (e.g. /2) instances of zero-length matches, both with BREs and
EREs, both with and without a trailing newline character on the input.
Feedback and OK otto@.
|
|
Now that we have dynamically sized buffers there may not be room
for the NUL until after realloc.
|
|
|
|
of the y (translate) command.
"If a backslash character is immediately followed by a backslash
character in string1 or string2, the two backslash characters shall
be counted as a single literal backslash character"
From FreeBSD; ok millert@ halex@
|
|
From FreeBSD; ok millert@ halex@
|
|
|
|
files. If any information found in these documents is worthwhile and you
miss it, please make the time to work it into the manual pages (which people
actually do read).
ok guenther
|
|
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
|
|
the beginning of the lines since the addition is supposed to be "verbatim".
From NetBSD, also matches the bahaviour of GNU sed
ok millert@
|
|
|
|
syntax. The -E flag is compatible with the other BSDs and OSX. -r is
also provided as an alias for compatibility with GNU sed.
feedback from jmc@ and millert@
ok millert@ pyr@ henning@ marco@
|
|
updates to follow;
|
|
a distinction between len and size. OK deraadt@
|
|
xmalloc call that goes with it.
|
|
that is passed in may now be larger than _POSIX2_LINE_MAX.
Thanks to pedro@ for the test case. OK pedro@
|