Skip to content
Commit 990486c8 authored by Chris Metcalf's avatar Chris Metcalf
Browse files

strscpy: zero any trailing garbage bytes in the destination



It's possible that the destination can be shadowed in userspace
(as, for example, the perf buffers are now).  So we should take
care not to leak data that could be inspected by userspace.

Signed-off-by: default avatarChris Metcalf <cmetcalf@ezchip.com>
parent c753bf34
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment