1
0
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:
Mounir IDRASSI
2014-07-09 05:26:48 +02:00
parent f67748ae8e
commit 2a288a7e12

View File

@@ -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);