Re: [PATCH v2] mach-omap2: fixing wrong strcat for Non-NULL terminated string

2016-12-01 Thread Russell King - ARM Linux
On Thu, Dec 01, 2016 at 04:28:33PM +0530, Maninder Singh wrote: > variable name can have Non NULL terminated string after cropping > which may result strcat to fail, and cropping is not > required if (strlen(oh->name) + 8 < MOD_CLK_MAX_NAME_LEN). > > Issue caught with static analysis tool: >

Re: [PATCH v2] mach-omap2: fixing wrong strcat for Non-NULL terminated string

2016-12-01 Thread Russell King - ARM Linux
On Thu, Dec 01, 2016 at 04:28:33PM +0530, Maninder Singh wrote: > variable name can have Non NULL terminated string after cropping > which may result strcat to fail, and cropping is not > required if (strlen(oh->name) + 8 < MOD_CLK_MAX_NAME_LEN). > > Issue caught with static analysis tool: >