Fix incorrect charset length in check_mb_eucjpms()

Closes GH-13781.
This commit is contained in:
Niels Dossche 2024-03-22 00:36:22 +01:00
parent 09a36812c1
commit 8ffac997aa
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -20,6 +20,7 @@ PHP NEWS
- MySQLnd:
. Fix GH-13452 (Fixed handshake response [mysqlnd]). (Saki Takamachi)
. Fix incorrect charset length in check_mb_eucjpms(). (nielsdos)
- Opcache:
. Fixed GH-13508 (JITed QM_ASSIGN may be optimized out when op1 is null).

View File

@ -270,7 +270,7 @@ static unsigned int check_mb_eucjpms(const char * const start, const char * cons
}
if (valid_eucjpms_ss3(start[0]) && (end - start) > 2 && valid_eucjpms(start[1]) &&
valid_eucjpms(start[2])) {
return 2;
return 3;
}
return 0;
}