diff options
author | Kees Cook | 2013-10-25 15:14:43 +0200 |
---|---|---|
committer | Michal Marek | 2013-11-06 22:30:03 +0100 |
commit | 849464d1ba97a13b388fee9a69fbbeee175b349c (patch) | |
tree | 155fa37c210749cb9e17304213d5648a4403bd7b /scripts/bloat-o-meter | |
parent | kbuild, bloat-o-meter: fix static detection (diff) | |
download | kernel-qcow2-linux-849464d1ba97a13b388fee9a69fbbeee175b349c.tar.gz kernel-qcow2-linux-849464d1ba97a13b388fee9a69fbbeee175b349c.tar.xz kernel-qcow2-linux-849464d1ba97a13b388fee9a69fbbeee175b349c.zip |
kbuild: replace unbounded sprintf call in modpost
The modpost tool could overflow its stack buffer if someone was running
with an insane shell environment. Regardless, it's technically a bug,
so this fixes it to truncate the string instead of seg-faulting.
Found by Coverity.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/bloat-o-meter')
0 files changed, 0 insertions, 0 deletions