Up to [local] / src / usr.bin / less
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_6_2_BASE
Revision 1.19 / (download) - annotate - [select for diffs], Wed Aug 2 19:35:57 2017 UTC (6 years, 10 months ago) by anton
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (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@