diff options
author | Daniel Kim <dekim@broadcom.com> | 2014-07-30 13:20:00 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-07-31 13:41:44 -0400 |
commit | 46de06839b4936cc5fd4e6638b8fbf8437bce29e (patch) | |
tree | 108dc393091e191ce8828d228802255b982c149b /samples/kdb | |
parent | 9f0b4cbdee09e635906611ed8dcc5c51116cbd75 (diff) | |
download | linux-46de06839b4936cc5fd4e6638b8fbf8437bce29e.tar.gz linux-46de06839b4936cc5fd4e6638b8fbf8437bce29e.tar.bz2 linux-46de06839b4936cc5fd4e6638b8fbf8437bce29e.zip |
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 <pieterpg@broadcom.com>
Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Signed-off-by: Daniel Kim <dekim@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'samples/kdb')
0 files changed, 0 insertions, 0 deletions