diff options
author | Qian Cai <cai@gmx.us> | 2018-12-10 14:39:38 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-12-14 00:04:08 +0100 |
commit | 00ec3ab0601280d00978ac4245a62b470cfa81bb (patch) | |
tree | 0268ded5f01db33551c33bfe4a5e61ce4b0315ad /net/caif | |
parent | 8e350ce1f78ef5a7d8250b9b4bdf733ce2fa5b1f (diff) | |
download | linux-00ec3ab0601280d00978ac4245a62b470cfa81bb.tar.gz linux-00ec3ab0601280d00978ac4245a62b470cfa81bb.tar.bz2 linux-00ec3ab0601280d00978ac4245a62b470cfa81bb.zip |
netfilter: ipset: replace a strncpy() with strscpy()
To make overflows as obvious as possible and to prevent code from blithely
proceeding with a truncated string. This also has a side-effect to fix a
compilation warning when using GCC 8.2.1.
net/netfilter/ipset/ip_set_core.c: In function 'ip_set_sockfn_get':
net/netfilter/ipset/ip_set_core.c:2027:3: warning: 'strncpy' writing 32 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=]
Signed-off-by: Qian Cai <cai@gmx.us>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/caif')
0 files changed, 0 insertions, 0 deletions