commit | 849464d1ba97a13b388fee9a69fbbeee175b349c | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Fri Oct 25 06:14:43 2013 -0700 |
committer | Michal Marek <mmarek@suse.cz> | Wed Nov 06 22:30:03 2013 +0100 |
tree | 155fa37c210749cb9e17304213d5648a4403bd7b | |
parent | 21cf6e584ce35b79374581e6344dd7c74f8b4a2b [diff] |
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>