[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <063D6719AE5E284EB5DD2968C1650D6DCFFD7B52@AcuExch.aculab.com>
Date: Fri, 21 Apr 2017 15:06:37 +0000
From: David Laight <David.Laight@...LAB.COM>
To: "'Naveen N. Rao'" <naveen.n.rao@...ux.vnet.ibm.com>,
Michael Ellerman <mpe@...erman.id.au>,
Ingo Molnar <mingo@...nel.org>
CC: "linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>,
"Masami Hiramatsu" <mhiramat@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH v3 4/7] powerpc: kprobes: use safer string functions in
kprobe_lookup_name()
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
Powered by blists - more mailing lists