]> 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)
commite8b8af01663717bc8677546fc8b540cdf5e28085
tree7afed64567fa6774fdf259bebff459ea592f031c
parentc1c1160870ca6e4a75db3c2d8317f25224970567
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