From: Daniel Kim Date: Wed, 30 Jul 2014 11:20:00 +0000 (+0200) Subject: brcmfmac: Do not use strcpy and strcat X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~12^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46de06839b4936cc5fd4e6638b8fbf8437bce29e;p=pandora-kernel.git brcmfmac: Do not use strcpy and strcat Commit "c1b2053 brcmfmac: Make firmware path a module parameter" introduced use of strcpy and strcat. The strcpy and strcat require using null terminated strings and can cause out-of-bounds memory access and subsequent corruption. This patch replaces these by strncpy and strncat respectively to assure array boundaries are not crossed. Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Arend Van Spriel Signed-off-by: Daniel Kim Signed-off-by: Arend van Spriel Signed-off-by: John W. Linville --- Reading git-diff-tree failed