| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
When an invalid regular expression is passed, seterr() is called which
sets p->error to the appropriate error code and sets p->next and
p->end to nuls[]. However, p->next is decremented in the default
case in p_ere_exp() and p_simp_re() which makes it point to one
byte before nuls[]. From FreeBSD. OK tedu@ deraadt@
|
|
|
|
|
|
| |
const promise when processing it in the regex engine.
Minor tweak and OK schwarze@
|
| |
|
|
|
|
|
|
| |
MUSTEAT.
ok tom@
|
|
|
|
|
|
|
| |
expressions generated by the REQUIRE() macro. Thus eliminating from build
output 100 lines or so of gcc complaints about "computed but not used".
cluebat & ok tom@
|
|
|
|
|
|
|
| |
or prototypes. Ditto for some of the char* and void* casts too.
verified no change to instructions on ILP32 (i386) and LP64 (amd64)
ok natano@ abluhm@ deraadt@ millert@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The new code sees this combination as a continuation of string at offset
pmatch[0].rm_so, instead of a new string which starts at that offset.
This change fixes a search quirk in vi and is needed for upcoming fixes in
ed/sed/vi.
This new behaviour is also used in gnu regex.
Lots of help from schwarze@
Manpage bits by schwarze@
OK schwarze@ and millert@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change touches code that only runs when REG_BASIC is given and the
regular expression is anchored with [[:<:]] or \< _and_ uses backreferences.
Simplify the logic while here, already looking at the previous character
if REG_STARTEND and REG_NOTBOL are both in use, in anticipation of
martijn@'s upcoming patch which will further improve REG_STARTEND.
OK millert@ martijn@
Also tested by Pedro Giffuni (pfg) on FreeBSD.
|
|
|
|
|
|
|
|
|
|
| |
This change touches code that only runs when REG_BASIC is given and
the regular expression is anchored with ^ _and_ uses backreferences.
The segfault could only be triggered when the ^ anchor was inside
a leading () subexpression quantified with *.
OK martijn@
Patch also proofread by Pedro Giffuni <pfg at FreeBSD dot org>.
|
|
|
|
| |
okay millert@
|
|
|
|
|
|
|
|
|
|
|
|
| |
correctly - logically complete that now by removing MLINKS from base;
authors need only to ensure there is an entry in NAME for any function/
util being added. MLINKS will still work, and remain for perl to ease
upgrades;
ok nicm (curses) bcook (ssl)
ok schwarze, who provided a lot of feedback and assistance
ok tb natano jung
|
|
|
|
| |
ok tb@
|
|
|
|
| |
ok tb@
|
|
|
|
| |
ok and valuable input from millert@
|
|
|
|
|
|
| |
or otherwise change Dt to reflect the name of an existing function;
feedback/ok schwarze
|
| |
|
|
|
|
| |
In some cases, do additional cleanup in the immediate vicinity.
|
|
|
|
| |
the symbols are weak
|
|
|
|
|
|
|
|
|
|
|
| |
Predefined strings are not very portable across troff implementations,
and they make the source much harder to read. Usually the intended
character can be written directly.
No output changes, except for two instances where the incorrect escape
was used in the first place.
tweaks + ok schwarze@
|
|
|
|
|
|
| |
while here, remove the lie that regex(3) character classes would
depend on the locale;
ok jmc@
|
| |
|
|
|
|
| |
ok doug millert
|
|
|
|
|
|
|
| |
Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.
ok deraadt@
|
|
|
|
|
| |
proper mult int overflow detection. The existing code already handles
malloc failure properly, of course.
|
| |
|
|
|
|
|
| |
from Pedro F. Giffuni in FreeBSD pr 153257
ok millert@ tedu@
|
|
|
|
|
|
| |
because such support is reportedly common and in somewhat wide use.
undocumented for now because we don't endorse this.
ok jsg millert
|
| |
|
|
|
|
| |
tweaking and ok millert@ jmc@
|
| |
|
|
|
|
|
|
|
|
|
|
| |
OUT to EOW, making its domain CHAR_MIN...CODEMAX. It makes sense to have
pchar() take the same domain and output those non-characters appropriately,
so the (unsigned char) cast for isprint() goes in pchar(). Constipate
pchar() while we're here, and let print() pass through NUL to it, as it
knows how to output it unambiguously.
ok otto@ millert@
|
| |
|
|
|
|
|
| |
facts checked by sobrado@
style tweaks and ok jmc@
|
|
|
|
|
|
| |
character following it;
From: Peter Fraser
|
| |
|
|
|
|
| |
appropriate. in regex, stop using the struct hack for a fixed size array
|
|
|
|
| |
netbsd; ok deraadt@
|
| |
|
|
|
|
| |
who asked me to commit because he is just running out of the door.
|
|
|
|
|
| |
pointer, so add a safety-net. From Gianluigi Tiesi via Torok Edwin.
ok chl@ millert@
|
|
|
|
|
|
|
|
|
|
|
| |
use a simpler way to allocated memory in allocset, mostly done by
replacing malloc/realloc dance, by only one realloc
add comments about variables that are not used uninitialized, even
if gcc told the contrary
another malloc/realloc -> realloc change
Work initially started by otto@, and then I joined him
ok otto@ ray@
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
routine and is not described in regex(3).
|
|
|
|
|
| |
termination with '\0') vs. null termination.
Input from krw@, jaredy@, jmc@. OK deraadt@
|