From 2e3faf9cd2c461e599df649d695b51fdb4f753d0 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 1 Sep 2006 23:19:56 +0000 Subject: [PATCH] MFB: fix possible crash --- ext/date/lib/parse_tz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c index 46ddb9786d..c5a8ed7099 100644 --- a/ext/date/lib/parse_tz.c +++ b/ext/date/lib/parse_tz.c @@ -196,7 +196,7 @@ static int tz_search(char *timezone, int left, int right, const timelib_tzdb *tz { int mid, cmp; - if (left > right) { + if (left >= right) { return -1; /* not found */ } -- 2.40.0