commit | 3a6ded6c5fad7c152a92980bb4a93c6b4d422fd3 | [log] [tgz] |
---|---|---|
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | Fri Aug 30 12:56:09 2019 -0400 |
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | Thu Dec 19 17:07:58 2019 -0500 |
tree | ddfcb205638061167007a6b1ff6bb292647d5ea8 | |
parent | d9f4b4043a68602f869c8c73b499cd7c7b4194b9 [diff] |
trace-cmd: Limit the size written into the pid mapname Need to tell scanf() the size of the mapname so that we don't risk a buffer overflow. As STRINGIFY() will make a string from the size, we can't use "PATH_MAX + 22", but 4096 should be plenty big enough. Link: http://lore.kernel.org/linux-trace-devel/20190830125609.2397b21a@gandalf.local.home Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>