History log of /openbsd-current/lib/libc/gen/fnmatch.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.23 13-Oct-2020 guenther

Do some easy .data -> .rodata/.data.rel.ro conversions

ok millert@ deraadt@


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.22 13-Mar-2020 djm

typo in comment
spotted at https://fossies.org/linux/misc/openssh-8.2p1.tar.gz/codespell.html


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.21 01-Mar-2016 millert

KNF this file; OK stsp@


# 1.20 26-Feb-2016 millert

Fix negation of POSIX character classes; passed new regress test.
OK tb@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.19 01-Aug-2015 millert

Fix a potential out-of-bounds read found via address-sanitizer while
fuzzing as reported by Elliott Hughes. OK doug@ stsp@


Revision tags: OPENBSD_5_7_BASE
# 1.18 11-Dec-2014 millert

Remove an undocumented limit on the length of the pattern and string
to match of PATH_MAX. As fnmatch() is used for matching more than
just pathnames, this can prevent legitimate matches for long strings
or partterns. OK miod@ tedu@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.17 24-Nov-2013 deraadt

most obvious unsigned char casts for ctype
ok jca krw ingo


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.16 06-Dec-2011 stsp

New fnmatch(3) implementation which is not recursive.
Written and provided under BSD licence by William A. Rowe Jr.
Originally released in Apache APR-1.4.5.
Merged class matching code from r1.14 and PATH_MAX check from r1.15.
ok miod millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.15 10-Feb-2011 stsp

Put a limit on recursion during matching, and reject input of size greater
or equal PATH_MAX. Based on similar fix made in NetBSD.
ok miod@ millert@


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 01-Oct-2008 millert

POSIX character class support for fnmatch(3) and glob(3). OK deraadt@


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.13 31-Mar-2006 deraadt

(char)to{upper,lower}()


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.12 08-Aug-2005 espie

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.11 18-May-2004 jfb

ansify function definitions and zap some `register'

ok millert@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.10 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.9 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.8 16-Feb-2002 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.


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.7 23-Mar-2000 millert

Add #ifdef __STDC__ around the rangematch function header to avoid
promotion of test to int, thus violating the prototype. Gcc handles
this gracefully but more std ANSI compilers will complain.


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.6 19-Mar-1998 millert

some -Wall


Revision tags: OPENBSD_2_2_BASE
# 1.5 22-Sep-1997 millert

From FreeBSD:
1) Add support for FNM_LEADING_DIR, FNM_CASEFOLD, FNM_IGNORECASE
2) POSIX.2 fixes


# 1.4 23-Jul-1997 kstailey

trailing blanks


# 1.3 09-Jul-1997 millert

Clean up some -Wall complaints.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.2 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.22 13-Mar-2020 djm

typo in comment
spotted at https://fossies.org/linux/misc/openssh-8.2p1.tar.gz/codespell.html


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.21 01-Mar-2016 millert

KNF this file; OK stsp@


# 1.20 26-Feb-2016 millert

Fix negation of POSIX character classes; passed new regress test.
OK tb@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.19 01-Aug-2015 millert

Fix a potential out-of-bounds read found via address-sanitizer while
fuzzing as reported by Elliott Hughes. OK doug@ stsp@


Revision tags: OPENBSD_5_7_BASE
# 1.18 11-Dec-2014 millert

Remove an undocumented limit on the length of the pattern and string
to match of PATH_MAX. As fnmatch() is used for matching more than
just pathnames, this can prevent legitimate matches for long strings
or partterns. OK miod@ tedu@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.17 24-Nov-2013 deraadt

most obvious unsigned char casts for ctype
ok jca krw ingo


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.16 06-Dec-2011 stsp

New fnmatch(3) implementation which is not recursive.
Written and provided under BSD licence by William A. Rowe Jr.
Originally released in Apache APR-1.4.5.
Merged class matching code from r1.14 and PATH_MAX check from r1.15.
ok miod millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.15 10-Feb-2011 stsp

Put a limit on recursion during matching, and reject input of size greater
or equal PATH_MAX. Based on similar fix made in NetBSD.
ok miod@ millert@


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 01-Oct-2008 millert

POSIX character class support for fnmatch(3) and glob(3). OK deraadt@


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.13 31-Mar-2006 deraadt

(char)to{upper,lower}()


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.12 08-Aug-2005 espie

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.11 18-May-2004 jfb

ansify function definitions and zap some `register'

ok millert@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.10 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.9 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.8 16-Feb-2002 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.


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.7 23-Mar-2000 millert

Add #ifdef __STDC__ around the rangematch function header to avoid
promotion of test to int, thus violating the prototype. Gcc handles
this gracefully but more std ANSI compilers will complain.


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.6 19-Mar-1998 millert

some -Wall


Revision tags: OPENBSD_2_2_BASE
# 1.5 22-Sep-1997 millert

From FreeBSD:
1) Add support for FNM_LEADING_DIR, FNM_CASEFOLD, FNM_IGNORECASE
2) POSIX.2 fixes


# 1.4 23-Jul-1997 kstailey

trailing blanks


# 1.3 09-Jul-1997 millert

Clean up some -Wall complaints.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.2 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.21 01-Mar-2016 millert

KNF this file; OK stsp@


# 1.20 26-Feb-2016 millert

Fix negation of POSIX character classes; passed new regress test.
OK tb@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.19 01-Aug-2015 millert

Fix a potential out-of-bounds read found via address-sanitizer while
fuzzing as reported by Elliott Hughes. OK doug@ stsp@


Revision tags: OPENBSD_5_7_BASE
# 1.18 11-Dec-2014 millert

Remove an undocumented limit on the length of the pattern and string
to match of PATH_MAX. As fnmatch() is used for matching more than
just pathnames, this can prevent legitimate matches for long strings
or partterns. OK miod@ tedu@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.17 24-Nov-2013 deraadt

most obvious unsigned char casts for ctype
ok jca krw ingo


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.16 06-Dec-2011 stsp

New fnmatch(3) implementation which is not recursive.
Written and provided under BSD licence by William A. Rowe Jr.
Originally released in Apache APR-1.4.5.
Merged class matching code from r1.14 and PATH_MAX check from r1.15.
ok miod millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.15 10-Feb-2011 stsp

Put a limit on recursion during matching, and reject input of size greater
or equal PATH_MAX. Based on similar fix made in NetBSD.
ok miod@ millert@


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 01-Oct-2008 millert

POSIX character class support for fnmatch(3) and glob(3). OK deraadt@


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.13 31-Mar-2006 deraadt

(char)to{upper,lower}()


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.12 08-Aug-2005 espie

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.11 18-May-2004 jfb

ansify function definitions and zap some `register'

ok millert@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.10 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.9 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.8 16-Feb-2002 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.


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.7 23-Mar-2000 millert

Add #ifdef __STDC__ around the rangematch function header to avoid
promotion of test to int, thus violating the prototype. Gcc handles
this gracefully but more std ANSI compilers will complain.


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.6 19-Mar-1998 millert

some -Wall


Revision tags: OPENBSD_2_2_BASE
# 1.5 22-Sep-1997 millert

From FreeBSD:
1) Add support for FNM_LEADING_DIR, FNM_CASEFOLD, FNM_IGNORECASE
2) POSIX.2 fixes


# 1.4 23-Jul-1997 kstailey

trailing blanks


# 1.3 09-Jul-1997 millert

Clean up some -Wall complaints.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.2 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision