aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSudeep Holla <[email protected]>2018-09-07 17:03:25 +0100
committerSudeep Holla <[email protected]>2018-09-10 10:08:44 +0100
commitca64b719a1e665ac7449b6a968059176af7365a8 (patch)
treee23723188ee72525bb6e5ccbbc9f465e167c3a1b /tools/perf/scripts/python/export-to-postgresql.py
parent11da3a7f84f19c26da6f86af878298694ede0804 (diff)
firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings
Replace all the memcpy() for copying name strings from the firmware with strlcpy() to make sure we are bounded by the source buffer size and we also always have NULL-terminated strings. This is needed to avoid out of bounds accesses if the firmware returns a non-terminated string. Reported-by: Olof Johansson <[email protected]> Acked-by: Olof Johansson <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions