From: Nuno Lopes Date: Fri, 1 Sep 2006 23:13:20 +0000 (+0000) Subject: fix possible crash X-Git-Tag: php-5.2.0RC4~123 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8b2f761f6d2e313c3d1952955539d8329aa6400;p=php fix possible crash --- 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 */ }