File less-fix_crash_in_hilite_line.patch of Package less.3873

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
openSUSE Build Service is sponsored by