Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix typo in last commit. | 2019-02-05 | 1 | -2/+2 | |
| | |||||
* | Avoid an out of bounds read when regcomp() is passed a bad expression. | 2019-02-05 | 1 | -1/+5 | |
| | | | | | | | | 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@ | ||||
* | fix oob read; form llvm via Vlad Tsyrklevich; ok millert@ | 2017-10-30 | 1 | -3/+3 | |
| | |||||
* | Clarify code by eliminating unused #define's MUSTSEE, MUSTNOTSEE and inlining | 2016-12-22 | 1 | -6/+3 | |
| | | | | | | MUSTEAT. ok tom@ | ||||
* | Adopt relevant part of NetBSD's r1.7 commit to discard unused results of the | 2016-12-21 | 1 | -2/+2 | |
| | | | | | | | 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@ | ||||
* | Delete casts to off_t and size_t that are implied by assignments | 2016-09-21 | 1 | -3/+2 | |
| | | | | | | | 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@ | ||||
* | Remove NULL-checks before free() and a few related dead assignments. | 2015-12-28 | 1 | -3/+2 | |
| | | | | ok and valuable input from millert@ | ||||
* | delete old lint ARGSUSED comments | 2015-11-01 | 1 | -3/+1 | |
| | |||||
* | reallocarray() -- a little tricky to review | 2014-10-18 | 1 | -3/+3 | |
| | | | | ok doug millert | ||||
* | add \<word\> support to regcomp. prompted by renewed interest from jsg | 2014-09-08 | 1 | -2/+28 | |
| | | | | | | because such support is reportedly common and in somewhat wide use. undocumented for now because we don't endorse this. ok jsg millert | ||||
* | reallocarray for things which are arrays. ok deraadt | 2014-05-06 | 1 | -8/+8 | |
| | |||||
* | unsigned char cast for ctype; ok guenther | 2013-11-26 | 1 | -2/+2 | |
| | |||||
* | silence some warnings by adding prototypes, casts, and headers as | 2013-04-17 | 1 | -4/+3 | |
| | | | | appropriate. in regex, stop using the struct hack for a fixed size array | ||||
* | don't handle out-of-mem conditions using compiled out asserts (ugh). From | 2011-11-07 | 1 | -9/+10 | |
| | | | | netbsd; ok deraadt@ | ||||
* | the posix regex mistake is here to stay. ok deraadt | 2010-11-21 | 1 | -13/+1 | |
| | |||||
* | if the first call to allocset() fails, the second might deref a NULL | 2008-02-23 | 1 | -1/+4 | |
| | | | | | pointer, so add a safety-net. From Gianluigi Tiesi via Torok Edwin. ok chl@ millert@ | ||||
* | add a proper test around allocset | 2007-10-10 | 1 | -51/+33 | |
| | | | | | | | | | | | 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@ | ||||
* | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | 2007-09-02 | 1 | -3/+3 | |
| | |||||
* | (char)to{upper,lower}() | 2006-03-31 | 1 | -3/+3 | |
| | |||||
* | zap rcsid | 2005-08-05 | 1 | -8/+1 | |
| | |||||
* | remove useless comments, once used for header file generation and delete | 2004-11-30 | 1 | -97/+38 | |
| | | | | parameter names from prototypes. ok millert@ | ||||
* | ansify and deregister; no change in obj code. ok millert@ | 2004-10-17 | 1 | -255/+185 | |
| | |||||
* | When parsing what follows [, do not allocate memory that is not used, | 2004-05-08 | 1 | -3/+7 | |
| | | | | | | also fix a memory leak in error path. ok millert@ | ||||
* | Unbreak handling of non-ASCII chars. Fixes PR 3594. From FreeBSD | 2003-12-07 | 1 | -15/+17 | |
| | | | | | | regcmp.c rev 1.13. ok deraadt@ | ||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -6/+2 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | strcpy/strcat -> strlcpy/strlcat | 2003-04-05 | 1 | -3/+2 | |
| | | | | ok tedu@, hints by deraadt@ and millert@ | ||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 1 | -38/+38 | |
| | |||||
* | much greater care for malloc & realloc failures; millert ok | 2001-11-01 | 1 | -16/+37 | |
| | |||||
* | realloc repair | 1998-08-14 | 1 | -4/+9 | |
| | |||||
* | Remove dead code and variables | 1997-04-30 | 1 | -21/+1 | |
| | |||||
* | - cast usages of *printf() to void since we don't check return val | 1997-04-28 | 1 | -1/+27 | |
| | | | | | | - move an assert to be *before* a strcpy() where it can do some good. - integrate NetBSD fixes for 64-bit machines (NetBSD PR #3450, Ross Harvey) - add lite2 tags | ||||
* | Remove dead code | 1996-09-15 | 1 | -64/+3 | |
| | | | | | | Remove unused variables Silence some warnings lint(1) is your friend | ||||
* | Fix RCS ids | 1996-08-19 | 1 | -9/+1 | |
| | | | | Make sure everything uses {SYS,}LIBC_SCCS properly | ||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+1704 | |