mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.4'
This commit is contained in:
@@ -2652,8 +2652,8 @@ int LSAPI_ParseSockAddr( const char * pBind, struct sockaddr * pAddr )
|
||||
{
|
||||
case '/':
|
||||
pAddr->sa_family = AF_UNIX;
|
||||
strncpy( ((struct sockaddr_un *)pAddr)->sun_path, p,
|
||||
sizeof(((struct sockaddr_un *)pAddr)->sun_path) );
|
||||
memccpy(((struct sockaddr_un *)pAddr)->sun_path, p, 0,
|
||||
sizeof(((struct sockaddr_un *)pAddr)->sun_path));
|
||||
return 0;
|
||||
|
||||
case '[':
|
||||
|
||||
@@ -417,7 +417,9 @@ static int LSCRIU_Native_Dump(pid_t iPid,
|
||||
memset(&criu_native_dump, 0, sizeof(criu_native_dump));
|
||||
criu_native_dump.m_iPidToDump = iPid;
|
||||
strncpy(criu_native_dump.m_chImageDirectory, pchImagePath,
|
||||
sizeof(criu_native_dump.m_chImageDirectory));
|
||||
sizeof(criu_native_dump.m_chImageDirectory) - 1);
|
||||
criu_native_dump.m_chImageDirectory[
|
||||
sizeof(criu_native_dump.m_chImageDirectory) - 1] = '\0';
|
||||
pchLastSlash = strrchr(criu_native_dump.m_chSocketDir,'/');
|
||||
if (pchLastSlash) {
|
||||
pchLastSlash++;
|
||||
|
||||
Reference in New Issue
Block a user