Signed-off-by: Biancaa Ramesh <biancaa2210329@ssn.edu.in>
---
scripts/kconfig/confdata.c | 3 ++-
scripts/kconfig/symbol.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index c0fef4cd6b60..5c61ca1cb2fd 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -154,7 +154,8 @@ static int conf_touch_dep(const char *name)
if (depfile_prefix_len + strlen(name) + 1 > sizeof(depfile_path))
return -1;
- strscpy(depfile_path + depfile_prefix_len, name);
+ strscpy(depfile_path + depfile_prefix_len, name,sizeof(depfile_path) - depfile_prefix_len);
+
fd = open(depfile_path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
if (fd == -1)
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
index 0c6746854617..c88840cafe80 100644
--- a/scripts/kconfig/symbol.c
+++ b/scripts/kconfig/symbol.c
@@ -809,7 +809,7 @@ bool sym_set_string_value(struct symbol *sym, const char *newval)
else
return true;
- strscpy(val, newval);
+ strscpy(val, newval,size);
free((void *)oldval);
sym_clear_all_valid();
--
2.43.0
--
::DISCLAIMER::
---------------------------------------------------------------------
The
contents of this e-mail and any attachment(s) are confidential and
intended
for the named recipient(s) only. Views or opinions, if any,
presented in
this email are solely those of the author and may not
necessarily reflect
the views or opinions of SSN Institutions (SSN) or its
affiliates. Any form
of reproduction, dissemination, copying, disclosure,
modification,
distribution and / or publication of this message without the
prior written
consent of authorized representative of SSN is strictly
prohibited. If you
have received this email in error please delete it and
notify the sender
immediately.
---------------------------------------------------------------------
Header of this mail should have a valid DKIM signature for the domain
ssn.edu.in <http://www.ssn.edu.in/>