Home | History | Annotate | Download | only in regex
History log of /src/lib/libc/regex/regex2.h
RevisionDateAuthorComments
 1.16  01-Jan-2025  christos PR/58910: enh at google dot com: Fix signed character issue in character
ranges.
 1.15  24-Feb-2021  christos branches: 1.15.8;
reduce casts
 1.14  23-Feb-2021  christos sync with FreeBSD:
- NLS support
- GNU extensions
- bug fixes
 1.13  09-Oct-2011  christos Prevent regcomp/regexec DoS attacks by limiting the amount of memory used
and the level of recursion. Thanks to Maksymilian Arciemowicz for discovery
and help with the implementation.
 1.12  12-Feb-2009  lukem sign-compare fixes
 1.11  26-Mar-2004  enami branches: 1.11.42;
Redo previous in a different way; cast the character held in int variable
as unsigned char just before passing isalnum() in ISWORD() rather than
fetching it as unsigned char. It is ok since EOF is never passed to ISWORD()
(though it will be a bit inefficient.)

Addresses PR#24929.
 1.10  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.9  13-Dec-1998  drochner Minor size_t!=int related cleanup, only effective on the alpha.
btw: the maximum length of an RE is limited by the "int" range, also
on the alpha. "sopno" is "int", and "int"s are used as counters within
the code, so it would need some work to change this. I only don't know
how one could test it...
 1.8  08-Dec-1998  drochner Back out part of the last change. This broke on the alpha (or wherever
sizeof(u_int32_t) != sizeof(*)), at least in cases with re->re_g->nstates
between 32 and 64.
Primary reason for the breakage was that the "states1" definition didn't
work as expected. (It didn't work before either, but this was not noticed
due to sizeof(long)==sizeof(*).)
The alpha can handle larger problems with the "small" state machine model
if a "long" is used as state variable, so it is better to keep the old
definition here. (u_int32_t is left for the "operator" variables.)
Use "int" as "sopno" - this is used as index into the states field, there
is no point in using a fized-size type.
 1.7  14-Nov-1998  christos Delint:
- we don't need to use longs; convert to use int32_t.
- remove break statements after returns.
- cast things properly.
 1.6  06-Apr-1997  cgd qualify opcode constants with long, so that bad things don't happen when long
!= 32 bits. This might need a bit more thought (i.e. why use long here to
begin with, when int32_t might be a better choice), but for now it's good
enough. From Ross Harvey in PR 3450, extended by me to cover the rest of
the opcode constants and masks.
 1.5  27-Feb-1995  cgd add unintrusive Ids
 1.4  30-Jan-1995  cgd clean up import; kill old cruft.
 1.3  23-Feb-1994  jtc Upgrade regex routines to alpha3.3.
 1.2  11-Nov-1993  jtc Update to Henry's Nov 2, 1993 alpha3.2 release.
 1.1  10-Nov-1993  jtc branches: 1.1.1;
Henry Spencer's POSIX.2 compatibile regular expression matching routines.
 1.1.1.1  30-Jan-1995  cgd regex code from lite. same as we're using, but slightly cleaner.
 1.11.42.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.15.8.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed