Merge branch 'PHP-8.3'

* PHP-8.3:
  Fix GH-13984: Buffer size is now checked before memcmp (#13991)
This commit is contained in:
Saki Takamachi 2024-04-18 08:38:18 +09:00
commit d14b208552
No known key found for this signature in database
GPG key ID: E4A36F6D37931A8B
2 changed files with 19 additions and 1 deletions

View file

@ -750,7 +750,7 @@ static char *make_filename_safe(const char *filename)
}
return estrdup(filename);
}
if (*filename && memcmp(filename, ":memory:", sizeof(":memory:"))) {
if (*filename && strcmp(filename, ":memory:")) {
char *fullpath = expand_filepath(filename, NULL);
if (!fullpath) {