aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorStefan Weil <[email protected]>2011-01-30 21:41:44 +0100
committerRalf Baechle <[email protected]>2011-03-14 21:07:26 +0100
commit994fed2dd2166f86b62ec53c7424660145f138ee (patch)
tree693b4a0483d0a4ec10a4b2ab911213c4b892b7a2 /tools/perf/scripts/python/net_dropmonitor.py
parentd3ce0e98b7fe17bb1dec9f6d7c50213db01e7189 (diff)
MIPS: Loongson: Fix potentially wrong string handling
This error was reported by cppcheck: arch/mips/loongson/common/machtype.c:56: error: Dangerous usage of 'str' (strncpy doesn't always 0-terminate it) If strncpy copied MACHTYPE_LEN bytes, the destination string str was not terminated. The patch adds one more byte to str and makes sure that this byte is always 0. Signed-off-by: Stefan Weil <[email protected]> Cc: Wu Zhangjin <[email protected]> Cc: Arnaud Patard <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2053/ Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions