CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2017/08/02 13:35:57
Modified files:
usr.bin/less : pattern.c search.c
Log message:
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@