aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorStephen Rothwell <[email protected]>2018-09-03 03:15:58 +0000
committerSteve French <[email protected]>2018-09-09 05:02:39 +0000
commitbcfb84a996f6fa90b5e6e2954b2accb7a4711097 (patch)
treeb3a78072e07985287bd889ca96ad30da6a21ffd4 /tools/perf/scripts/python/intel-pt-events.py
parentMerge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm (diff)
downloadkernel-bcfb84a996f6fa90b5e6e2954b2accb7a4711097.tar.gz
kernel-bcfb84a996f6fa90b5e6e2954b2accb7a4711097.zip
fs/cifs: suppress a string overflow warning
A powerpc build of cifs with gcc v8.2.0 produces this warning: fs/cifs/cifssmb.c: In function ‘CIFSSMBNegotiate’: fs/cifs/cifssmb.c:605:3: warning: ‘strncpy’ writing 16 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] strncpy(pSMB->DialectsArray+count, protocols[i].name, 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Since we are already doing a strlen() on the source, change the strncpy to a memcpy(). Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions