summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regcomp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* don't handle out-of-mem conditions using compiled out asserts (ugh). Fromotto2011-11-071-9/+10
| | | | netbsd; ok deraadt@
* the posix regex mistake is here to stay. ok deraadttedu2010-11-211-13/+1
|
* if the first call to allocset() fails, the second might deref a NULLotto2008-02-231-1/+4
| | | | | pointer, so add a safety-net. From Gianluigi Tiesi via Torok Edwin. ok chl@ millert@
* add a proper test around allocsetchl2007-10-101-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 jsgderaadt2007-09-021-3/+3
|
* (char)to{upper,lower}()deraadt2006-03-311-3/+3
|
* zap rcsidespie2005-08-051-8/+1
|
* remove useless comments, once used for header file generation and deleteotto2004-11-301-97/+38
| | | | parameter names from prototypes. ok millert@
* ansify and deregister; no change in obj code. ok millert@otto2004-10-171-255/+185
|
* When parsing what follows [, do not allocate memory that is not used,otto2004-05-081-3/+7
| | | | | | also fix a memory leak in error path. ok millert@
* Unbreak handling of non-ASCII chars. Fixes PR 3594. From FreeBSDotto2003-12-071-15/+17
| | | | | | regcmp.c rev 1.13. ok deraadt@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* strcpy/strcat -> strlcpy/strlcattdeval2003-04-051-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.millert2002-02-161-38/+38
|
* much greater care for malloc & realloc failures; millert okderaadt2001-11-011-16/+37
|
* realloc repairderaadt1998-08-141-4/+9
|
* Remove dead code and variablestholo1997-04-301-21/+1
|
* - cast usages of *printf() to void since we don't check return valmillert1997-04-281-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 codetholo1996-09-151-64/+3
| | | | | | Remove unused variables Silence some warnings lint(1) is your friend
* Fix RCS idstholo1996-08-191-9/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+1704