Skip to content

Commit 8ffac99

Browse files
committed
Fix incorrect charset length in check_mb_eucjpms()
Closes phpGH-13781.
1 parent 09a3681 commit 8ffac99

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ PHP NEWS
2020

2121
- MySQLnd:
2222
. Fix GH-13452 (Fixed handshake response [mysqlnd]). (Saki Takamachi)
23+
. Fix incorrect charset length in check_mb_eucjpms(). (nielsdos)
2324

2425
- Opcache:
2526
. Fixed GH-13508 (JITed QM_ASSIGN may be optimized out when op1 is null).

ext/mysqlnd/mysqlnd_charset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ static unsigned int check_mb_eucjpms(const char * const start, const char * cons
270270
}
271271
if (valid_eucjpms_ss3(start[0]) && (end - start) > 2 && valid_eucjpms(start[1]) &&
272272
valid_eucjpms(start[2])) {
273-
return 2;
273+
return 3;
274274
}
275275
return 0;
276276
}

0 commit comments

Comments
 (0)