Skip to content
Commit 17586188 authored by Naveen N. Rao's avatar Naveen N. Rao Committed by Jessica Yu
Browse files

kallsyms: Use bounded strnchr() when parsing string



When parsing for the <module:name> format, we use strchr() to look for
the separator, when we know that the module name can't be longer than
MODULE_NAME_LEN. Enforce the same using strnchr().

Signed-off-by: default avatarNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Reviewed-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarJessica Yu <jeyu@redhat.com>
parent 8ba4fcdf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment