History log of /openbsd/usr.bin/less/search.c (Results 1 – 22 of 22)
Revision Date Author Comments
# d9a51c35 26-Dec-2022 jmc <jmc@openbsd.org>

spelling fixes; from paul tagliamonte
amendments to his diff are noted on tech


# d65139b4 03-Sep-2019 deraadt <deraadt@openbsd.org>

less uses a correct raceless signal method of indicating signal events in
a volatile sig_atomic_t variable, and then processing events in the mainloop.
But only one variable was used for 3 signals, w

less uses a correct raceless signal method of indicating signal events in
a volatile sig_atomic_t variable, and then processing events in the mainloop.
But only one variable was used for 3 signals, with |= bit operations which
are signal interruptable! Rewrite the code to use 3 independent variables
and cleanup how the mainloop observes indications.
ok schwarze

show more ...


# d0dcf7a6 14-Mar-2019 schwarze <schwarze@openbsd.org>

Cleanup and bugfix:
When looking for uppercase characters, iterate over multibyte
characters with the standard function mbtowc(3) rather than with
the buggy and outdated step_char(), skipping invalid

Cleanup and bugfix:
When looking for uppercase characters, iterate over multibyte
characters with the standard function mbtowc(3) rather than with
the buggy and outdated step_char(), skipping invalid bytes,
and correctly use iswupper(3) instead of the inapplicable isupper(3).
OK stsp@

show more ...


# d37538d0 02-Aug-2017 anton <anton@openbsd.org>

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 bound

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@

show more ...


# 021cd5d5 17-Sep-2016 deraadt <deraadt@openbsd.org>

little bit more KNF


# 27b3ade3 16-Mar-2016 mmcc <mmcc@openbsd.org>

style(9) includes

ok nicm@


# 2a69c85b 12-Jan-2016 mmcc <mmcc@openbsd.org>

Remove LINUNUM, a needless alias for off_t. Also, remove a redundant
condition.

ok nicm@


# e88b3cc2 09-Dec-2015 mmcc <mmcc@openbsd.org>

Remove NULL-check before free().


# 1baf26bd 21-Nov-2015 tedu <tedu@openbsd.org>

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


# bf1039ba 09-Nov-2015 deraadt <deraadt@openbsd.org>

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


# 5c76eb3a 09-Nov-2015 mmcc <mmcc@openbsd.org>

Remove NULL-checks before free(), a needless comment, and a needless
void* cast.

ok nicm@


# b8c1323e 06-Nov-2015 nicm <nicm@openbsd.org>

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.


# 171bb95e 05-Nov-2015 nicm <nicm@openbsd.org>

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

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

show more ...


# b8efc5bf 28-May-2014 millert <millert@openbsd.org>

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


# 26ad794d 25-Apr-2014 shadchin <shadchin@openbsd.org>

Merge Less 458 plus local patches

ok guenther@, ok jmc@ for man bits


# 43b5ee64 21-Sep-2011 millert <millert@openbsd.org>

Use volatile sig_atomic_t, not int, for the sigs variable. Also
move the call to bell() out of u_interrupt() (a signal handler).
OK and with help from deraadt@


# 168565f4 16-Sep-2011 shadchin <shadchin@openbsd.org>

Merge in less 444 plus local changes

ok nicm@


# 45076018 13-Apr-2003 millert <millert@openbsd.org>

Merge in less-381 w/ local changes and remove obsolete files.


# f09bbe38 06-Apr-2003 deraadt <deraadt@openbsd.org>

more strlcpy/strlcat/snprintf, less strcpy/strcat/sprintf
reviewed by tdeval, millert, dhartmei and others. more bits coming here
from some of them i think


# c0932ef1 19-Nov-2001 mpech <mpech@openbsd.org>

kill more registers

millert@ ok


# d4e7c603 29-Jan-2001 niklas <niklas@openbsd.org>

$OpenBSD$


# e3b7954b 21-Sep-1996 etheisen <etheisen@openbsd.org>

Import of unmolested less-290.