mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
MFB: fix possible crash
This commit is contained in:
parent
b765958e7a
commit
2e3faf9cd2
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue