mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
Static Code Analysis : Avoid potential overflow when parsing language file by specifying width for 's' conversion specifier
This commit is contained in:
@@ -298,7 +298,7 @@ BOOL LoadLanguageFile ()
|
||||
|
||||
do
|
||||
{
|
||||
if (sscanf (header, "#define %s %d", key, &intKey) == 2)
|
||||
if (sscanf (header, "#define %127s %d", key, &intKey) == 2)
|
||||
{
|
||||
WCHAR *str = GetString (key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user