OpenBSD CVS

CVS log for src/usr.bin/less/pattern.c


[BACK] Up to [local] / src / usr.bin / less

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.10 / (download) - annotate - [select for diffs], Wed Aug 2 19:35:57 2017 UTC (6 years, 9 months ago) by anton
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, HEAD
Changes since 1.9: +2 -0 lines
Diff to previous 1.9 (colored)

When performing an inverted search in less, make sure to invalidate the match
bounds prior calling regexec(). In this inverted scenario a match is found when
regexec() returns false causing the bounds to not be updated. This is
problematic since the bounds will then refer to a previous match and future
pointer arithmetic will eventually be off which is manifested in a SIGSEGV.

Issue reported by Larry Hynes on tech@
ok martijn@ tb@

Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 21 13:29:12 2015 UTC (8 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.8: +0 -9 lines
Diff to previous 1.8 (colored)

remove fancy null check function in favor of checking for null.
from Ricardo Mestre

Revision 1.8 / (download) - annotate - [select for diffs], Mon Nov 9 16:39:13 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored)

error() is not a stdarg function, so there is no reason for NULL_PARG
to be special.  Simply use NULL.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Nov 6 15:50:33 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.6: +2 -4 lines
Diff to previous 1.6 (colored)

Garrett D'Amore has agreed to moving his copyright line up above the
terms with the existing copyright, so it is clear it applies the same
terms.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Nov 5 22:08:44 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.5: +48 -273 lines
Diff to previous 1.5 (colored)

Replace less with the cleaned-up fork of less 458 maintained by Garrett
D'Amore at https://github.com/gdamore/less-fork. This has significantly
less portability goop, has a tidied up code style, uses terminfo instead
of termcap, and is has stricter POSIX compliance.

Many of our local changes have been accepted upstream: substantial
remaining local changes are code to read help files from /usr/share
rather than compiling them in, man page and help improvements, and some
tweaks to the default options.

Review and testing by millert, ok deraadt

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 28 11:39:15 2014 UTC (9 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

When invoked as more, make the -i option behave the same as less's
-I to match POSIX.  OK and man bits from jmc@

Revision 1.4 / (download) - annotate - [select for diffs], Fri May 23 19:49:15 2014 UTC (9 years, 11 months ago) by guenther
Branch: MAIN
Changes since 1.3: +5 -0 lines
Diff to previous 1.3 (colored)

Use REG_STARTEND to permit searches to work past/across NUL bytes.

ok millert@ shadchin@

Revision 1.3 / (download) - annotate - [select for diffs], Fri Apr 25 13:38:21 2014 UTC (10 years ago) by shadchin
Branch: MAIN
Changes since 1.2: +109 -67 lines
Diff to previous 1.2 (colored)

Merge Less 458 plus local patches

ok guenther@, ok jmc@ for man bits

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Fri Apr 25 13:33:50 2014 UTC (10 years ago) by shadchin
Branch: MARK_NUDELMAN
CVS Tags: LESS_458
Changes since 1.1.1.1: +110 -67 lines
Diff to previous 1.1.1.1 (colored)

Import of Less 458

ok guenther@

Revision 1.2 / (download) - annotate - [select for diffs], Sat Apr 12 01:01:19 2014 UTC (10 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Unlike less, more should use basic regular expressions.
OK schwarze@

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Sep 16 17:47:07 2011 UTC (12 years, 8 months ago) by shadchin
Branch: MARK_NUDELMAN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, LESS_444
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import of Less 444

ok nicm@

Revision 1.1 / (download) - annotate - [select for diffs], Fri Sep 16 17:47:07 2011 UTC (12 years, 8 months ago) by shadchin
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.