Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1547707

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

From Tony Lindgren <tony@atomide.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3] mach-omap2: fixing wrong strcat for Non-NULL terminated string
Date 2016-12-27 18:50 +0100
Message-ID <sT42R-56S-1@gated-at.bofh.it> (permalink)
References <sLYlz-1cp-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Maninder Singh <maninder1.s@samsung.com> [161207 20:16]:
> Issue caught with static analysis tool:
> "Dangerous usage of 'name' (strncpy doesn't always 0-terminate it)"
> 
> Use strlcpy _includes_ the NUL terminator, and  strlcat() which ensures 
> that it won't overflow the buffer.

Applying into omap-for-v4.10/fixes thanks.

Tony

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH v3] mach-omap2: fixing wrong strcat for Non-NULL  terminated string Tony Lindgren <tony@atomide.com> - 2016-12-27 18:50 +0100

csiph-web