]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kaslr: Replace strlen() with strnlen()
authorArvind Sankar <nivedita@alum.mit.edu>
Mon, 3 Aug 2020 01:15:34 +0000 (21:15 -0400)
committerIngo Molnar <mingo@kernel.org>
Thu, 6 Aug 2020 15:03:19 +0000 (17:03 +0200)
commit9508c24de017637b7593f5c7b06c83f44b47415e
tree7afed64567fa6774fdf259bebff459ea592f031c
parentcdfdd95ab1f70d2fbcc6b1c8f9f03808ab65e667
x86/kaslr: Replace strlen() with strnlen()

strnlen is safer in case the command line is not NUL-terminated.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200803011534.730645-2-nivedita@alum.mit.edu
arch/x86/boot/compressed/kaslr.c