Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Michal Marek <[email protected]>
- Loading branch information