mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix GH-13984: Buffer size is now checked before memcmp (#13991)
This commit is contained in:
commit
dd5cdfd645
3 changed files with 22 additions and 1 deletions
|
@ -738,7 +738,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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue