diff options
author | Arvind Sankar <nivedita@alum.mit.edu> | 2020-08-02 21:15:34 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-08-06 17:03:19 +0200 |
commit | 76167e5c5457aee8fba3edc5b8554183696fc94d (patch) | |
tree | 7afed64567fa6774fdf259bebff459ea592f031c /lib/mpi/mpi-pow.c | |
parent | f49236ae424d499d02ee3ce35fb9130ddf95b03f (diff) |
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
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions