less/less-fix_crash_in_hilite_line.patch

13 lines
417 B
Diff

Index: less-458/pattern.c
===================================================================
--- less-458.orig/pattern.c 2013-04-04 18:55:06.000000000 +0200
+++ less-458/pattern.c 2015-06-25 11:06:56.681087046 +0200
@@ -277,6 +277,7 @@ match_pattern(pattern, tpattern, line, l
struct regexp *spattern = (struct regexp *) pattern;
#endif
+ *sp = *ep = NULL;
#if NO_REGEX
search_type |= SRCH_NO_REGEX;
#endif