summaryrefslogtreecommitdiff
path: root/lib/libc/regex/engine.c
AgeCommit message (Collapse)Author
2005-08-05zap rcsidMarc Espie
2005-01-03Plug a mem leak. Now you can run hanoi.sed witt a lot of pegs and notOtto Moerbeek
run out of mem! From FreeBSD PR 75656. ok millert@ deraadt@
2004-11-30remove useless comments, once used for header file generation and deleteOtto Moerbeek
parameter names from prototypes. ok millert@
2004-11-29Better fix for the "unbounded recursion case", for exampleOtto Moerbeek
\(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@
2004-10-17ansify and deregister; no change in obj code. ok millert@Otto Moerbeek
2004-08-13Change an assert into a loop termination condition. Fixes a coreTodd C. Miller
dump found by jmc@. OK otto@
2004-04-02Avoid unbounded recursion in some expressions involving back references.Otto Moerbeek
For example: echo "foo foo bar bar bar baz" | sed 's/\([^ ]*\)\( *\1\)*/\1/g' Test case found by dhartmei@ ok millert@ dhartmei@ tedu@
2004-03-30Allow compilation w/ -DREDEBUG; non-debug compilation is unaffected.Todd C. Miller
From NetBSD.
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-05-25remaining easy snprintf conversionsTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
1997-04-28- cast usages of *printf() to void since we don't check return valTodd C. Miller
- 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
1997-04-12long -> int to fix 64bit issues. This breaks 16bit machines but since we ↵Todd C. Miller
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)
1996-08-19Fix RCS idsThorsten Lockert
Make sure everything uses {SYS,}LIBC_SCCS properly
1995-10-18initial import of NetBSD treeTheo de Raadt