From bfb7e1606388ae100ef25a40030d1f5ef6c6131d Mon Sep 17 00:00:00 2001 From: Amir Mohammad Jahangirzad Date: Mon, 9 Jun 2025 19:57:15 +0330 Subject: [PATCH] lsteamclient: fixed potential stack-based buffer overflow in unixlib --- lsteamclient/unixlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsteamclient/unixlib.cpp b/lsteamclient/unixlib.cpp index fe640d9bbe..f7f21955c6 100644 --- a/lsteamclient/unixlib.cpp +++ b/lsteamclient/unixlib.cpp @@ -941,7 +941,7 @@ char *steamclient_dos_to_unix_path( const char *src, int is_url ) { if (strncmp( src, file_prot, 7 ) != 0) { - strcpy( dst, src ); + strncat( dst, src, sizeof(buffer) - 1 ); goto done; }