Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 72efe6d

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
2 parents 73321e2 + 8e5b312 commit 72efe6d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎sapi/litespeed/lsapilib.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2652,8 +2652,8 @@ int LSAPI_ParseSockAddr( const char * pBind, struct sockaddr * pAddr )
26522652
{
26532653
case '/':
26542654
pAddr->sa_family = AF_UNIX;
2655-
strncpy( ((struct sockaddr_un *)pAddr)->sun_path, p,
2656-
sizeof(((struct sockaddr_un *)pAddr)->sun_path));
2655+
memccpy(((struct sockaddr_un *)pAddr)->sun_path, p, 0,
2656+
sizeof(((struct sockaddr_un *)pAddr)->sun_path));
26572657
return 0;
26582658

26592659
case '[':

‎sapi/litespeed/lscriu.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,9 @@ static int LSCRIU_Native_Dump(pid_t iPid,
417417
memset(&criu_native_dump, 0, sizeof(criu_native_dump));
418418
criu_native_dump.m_iPidToDump = iPid;
419419
strncpy(criu_native_dump.m_chImageDirectory, pchImagePath,
420-
sizeof(criu_native_dump.m_chImageDirectory));
420+
sizeof(criu_native_dump.m_chImageDirectory) - 1);
421+
criu_native_dump.m_chImageDirectory[
422+
sizeof(criu_native_dump.m_chImageDirectory) - 1] = '0円';
421423
pchLastSlash = strrchr(criu_native_dump.m_chSocketDir,'/');
422424
if (pchLastSlash) {
423425
pchLastSlash++;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /