commit | 42fc96f520796c7d18c7372b6ad80292d4a0bc21 | [log] [tgz] |
---|---|---|
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | Mon Sep 14 14:00:16 2015 -0400 |
committer | Steven Rostedt <rostedt@goodmis.org> | Mon Mar 21 18:05:51 2016 -0400 |
tree | 4813b0ec37267382eb700fabc5ea54979eb314b9 | |
parent | d4321519aec1d6aba5edd5582c21903132990b3d [diff] |
trace-cmd: Make msgcpy() and optcpy() check for size Have msgcpy() and optcpy() test the offset + buflen to see if it would overwrite the size of the msg or opt. If so, return -ENIVAL. The checking of this return value still needs to be done, but at least we wont be accidentally overwriting the memory. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>