From 22f65c16019b7a87278214ff7f40485b5e0605f2 Mon Sep 17 00:00:00 2001 From: Anatolii Nikulin Date: Wed, 25 May 2016 14:35:25 +0300 Subject: [PATCH] [FIX] Svace issues |-------------------------------------------------------| | WGID | Type | File | |-------------------------------------------------------| | 27672 | STATIC_OVERFLOW.SCANF | wsp/wsp_debugfs.c | |-------------------------------------------------------| Change-Id: I97ce0a3755bdbc20c67c7a9a1a813c25e7547e65 Signed-off-by: Anatolii Nikulin --- wsp/wsp_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wsp/wsp_debugfs.c b/wsp/wsp_debugfs.c index 797ebcb..c966563 100644 --- a/wsp/wsp_debugfs.c +++ b/wsp/wsp_debugfs.c @@ -37,7 +37,7 @@ static int do_write_cmd(const char *buf, size_t count) if (name == NULL) return -ENOMEM; - n = sscanf(buf, "%lx %s", &offset, name); + n = sscanf(buf, "%lx %1024s", &offset, name); if (n != 2) { ret = -EINVAL; goto free_name; -- 2.7.4