Skip to content

Commit

Permalink
PINE: Fix stack buffer overflow for long XDG_RUNTIME_DIR paths
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoticgd authored and F0bes committed Nov 22, 2024
1 parent 8e8277c commit f69d583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/PINE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ bool PINEServer::Initialize(int slot)
return false;
}
server.sun_family = AF_UNIX;
strcpy(server.sun_path, m_socket_name.c_str());
StringUtil::Strlcpy(server.sun_path, m_socket_name, sizeof(server.sun_path));

// we unlink the socket so that when releasing this thread the socket gets
// freed even if we didn't close correctly the loop
Expand Down

0 comments on commit f69d583

Please sign in to comment.