[PATCH v3 4/7] powerpc: kprobes: use safer string functions in kprobe_lookup_name()

David Laight David.Laight at ACULAB.COM
Sat Apr 22 01:06:37 AEST 2017


From: Naveen N. Rao
> Sent: 19 April 2017 13:51
...
>  			dot_name[0] = '\0';
> -			strncat(dot_name, name, sizeof(dot_name) - 1);
> +			strlcat(dot_name, name, sizeof(dot_name));
...

Is that really zeroing the first byte just so it can append to it?

	David



More information about the Linuxppc-dev mailing list