mirror of
https://github.com/Evolution-X-Devices/kernel_google_b1c1
synced 2026-02-10 12:20:09 +00:00
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>
12 KiB
12 KiB