From 0bad0c321d51352bfb68c3759c7fd78489e7e254 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 27 Feb 2010 18:32:49 +0900 Subject: * lib.c (search_str): Bugfix for empty haystack case: checks for end of string must use postincrement on the index, otherwise the access goes past the null terminator. --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index a1825d53..9cfcb0bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-02-27 Kaz Kylheku + + * lib.c (search_str): Bugfix for empty haystack case: checks for end + of string must use postincrement on the index, otherwise the access + goes past the null terminator. + 2010-02-27 Kaz Kylheku * match.c (match_lines): Bugfix in freeform directive. -- cgit v1.2.3