Re: [U-Boot] hashtable: fix length calculation in hexport_r

2018-12-17 Thread Tom Rini
On Fri, Dec 14, 2018 at 06:42:51PM +0900, AKASHI Takahiro wrote: > The commit below incorrectly fixed hexport_r(); > >size = totlen + 1; > One extra byte is necessary to NULL-terminate a whole buffer, "resp." > > Fixes: f1b20acb4a03 ("hashtable: Fix length calculation in hexport_r") > Signed

Re: [U-Boot] hashtable: Fix length calculation in hexport_r

2018-07-26 Thread Tom Rini
On Tue, Jul 17, 2018 at 07:25:38PM +0100, Zubair Lutfullah Kakakhel wrote: > The length returned by hexport_r has a few redundant characters. > This appears as NULL characters at the end so seems harmless. > > Remove the surplus counts in two places > > totlen += strlen(ep->key) + 2; > I'm guess