summaryrefslogtreecommitdiffstats
path: root/ebtables-save
diff options
context:
space:
mode:
authorDuncan Roe <duncan_roe@optusnet.com.au>2018-06-15 11:31:56 +1000
committerPablo Neira Ayuso <pablo@netfilter.org>2018-06-28 17:19:04 +0200
commit53d7e7a85207fdb1ce8612a12a6bc94710ecc552 (patch)
tree4f397de648c62ffe6b4ada415c237a9d2ac1f81e /ebtables-save
parent56993546c80576986930f9bae7ae4ba744b1e508 (diff)
extensions: ebt_string: take action if snprintf discards data
56993546c805 ("extensions: fix build failure on fc28") eliminated a gcc warning that strncpy could make a string w/out a NUL terminator. snprintf guarantees NUL-termination (so fixes that possibility). But, snprintf may discard data to make room for the NUL. This patch errors straight away in that eventuality. Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'ebtables-save')
0 files changed, 0 insertions, 0 deletions