VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-07-09 05:26:48 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:20:37 +0100
commit2a288a7e127d37962fa0ec3659d73d8f33bfdc63 (patch)
treebaf942017e2912d289eefdb4014a651fa74d288d
parentf67748ae8e3ebefc1361d6e8a7f8e5020ff68517 (diff)
downloadVeraCrypt-2a288a7e127d37962fa0ec3659d73d8f33bfdc63.tar.gz
VeraCrypt-2a288a7e127d37962fa0ec3659d73d8f33bfdc63.zip
Static Code Analysis : Avoid potential overflow when parsing language file by specifying width for 's' conversion specifier
-rw-r--r--src/Common/Language.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Language.c b/src/Common/Language.c
index 5d23902d..b146f820 100644
--- a/src/Common/Language.c
+++ b/src/Common/Language.c
@@ -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);