Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove NULL-checks before free() and needless argument casts. | 2015-12-28 | 1 | -5/+3 | |
| | | | | ok tb@ | ||||
* | use reallocarray(NULL, a, b) instead of malloc(a, b), which gives us | 2014-10-09 | 1 | -5/+5 | |
| | | | | | proper mult int overflow detection. The existing code already handles malloc failure properly, of course. | ||||
* | The print() routine here can be passed at least some of the non-characters | 2013-11-28 | 1 | -6/+17 | |
| | | | | | | | | | | 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@ | ||||
* | silence some warnings by adding prototypes, casts, and headers as | 2013-04-17 | 1 | -1/+2 | |
| | | | | appropriate. in regex, stop using the struct hack for a fixed size array | ||||
* | zap rcsid | 2005-08-05 | 1 | -5/+1 | |
| | |||||
* | Plug a mem leak. Now you can run hanoi.sed witt a lot of pegs and not | 2005-01-03 | 1 | -2/+4 | |
| | | | | | | run out of mem! From FreeBSD PR 75656. ok millert@ deraadt@ | ||||
* | remove useless comments, once used for header file generation and delete | 2004-11-30 | 1 | -54/+11 | |
| | | | | parameter names from prototypes. ok millert@ | ||||
* | Better fix for the "unbounded recursion case", for example | 2004-11-29 | 1 | -17/+18 | |
| | | | | | | | | \(b*\)\(a*\1\)*, more cases in regress/lib/libc/regexp/test. Only stop evaluation of a back reference if the match lenght is zero and the recursion level is too deep. With help from jaredy@ Problem case found by Andrew Brown in NetBSD PR 28126. ok deraadt@ millert@ | ||||
* | ansify and deregister; no change in obj code. ok millert@ | 2004-10-17 | 1 | -120/+84 | |
| | |||||
* | Change an assert into a loop termination condition. Fixes a core | 2004-08-13 | 1 | -3/+4 | |
| | | | | dump found by jmc@. OK otto@ | ||||
* | Avoid unbounded recursion in some expressions involving back references. | 2004-04-02 | 1 | -2/+4 | |
| | | | | | | | For example: echo "foo foo bar bar bar baz" | sed 's/\([^ ]*\)\( *\1\)*/\1/g' Test case found by dhartmei@ ok millert@ dhartmei@ tedu@ | ||||
* | Allow compilation w/ -DREDEBUG; non-debug compilation is unaffected. | 2004-03-30 | 1 | -2/+6 | |
| | | | | From NetBSD. | ||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -7/+3 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | remaining easy snprintf conversions | 2002-05-25 | 1 | -4/+4 | |
| | |||||
* | 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 | -11/+11 | |
| | |||||
* | - cast usages of *printf() to void since we don't check return val | 1997-04-28 | 1 | -11/+15 | |
| | | | | | | - 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 | ||||
* | long -> int to fix 64bit issues. This breaks 16bit machines but since we don't have any 16bit ports...) The alternative is to use int32_t's but then this code will break when/if int > 32bits which is not so unlikely. Fixes NetBSD PR #3450 from Ross Harvey (but in a different way) | 1997-04-12 | 1 | -2/+2 | |
| | |||||
* | Fix RCS ids | 1996-08-19 | 1 | -4/+4 | |
| | | | | Make sure everything uses {SYS,}LIBC_SCCS properly | ||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+1093 | |