[dpdk-dev] [dpdk-stable] [PATCH v2 1/4] net/ena: improve safety of string handling in ena_config_host_info

Ferruh Yigit ferruh.yigit at intel.com
Wed Oct 12 18:24:55 CEST 2016


On 9/29/2016 6:39 PM, John W. Linville wrote:
> Use sizeof dest rather than sizeof src for limiting copy length,
> and replace strncpy with snprintf to ensure NULL termination.
> 
> Coverity issue: 127795
> Fixes: 372c1af5ed8f ("net/ena: add dedicated memory area for extra device info")
> 
> Signed-off-by: John W. Linville <linville at tuxdriver.com>
> ---

Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>


More information about the dev mailing list