diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-07-09 05:26:48 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-11-08 23:20:37 +0100 |
commit | 2a288a7e127d37962fa0ec3659d73d8f33bfdc63 (patch) | |
tree | baf942017e2912d289eefdb4014a651fa74d288d | |
parent | f67748ae8e3ebefc1361d6e8a7f8e5020ff68517 (diff) | |
download | VeraCrypt-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.c | 2 |
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);
|