summaryrefslogtreecommitdiffstats
path: root/iptables/nft-bridge.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-09-10 23:35:14 +0200
committerFlorian Westphal <fw@strlen.de>2018-09-13 10:47:52 +0200
commite6f986762667ee2b2d61e7978d460f28916158a3 (patch)
treebb082a4e8af6fec2b85ec17e91c46352b18fa5b3 /iptables/nft-bridge.h
parent4144571f87c094471419ef59e8bb89ef33cd1365 (diff)
libiptc: Avoid side-effect in memset() calls
These calls to memset() are passed a length argument which exceeds t->target.u.user.name's length by one byte and hence overwrite t->target.u.user.revision as well (relying upon no padding to happen between both). Avoid this obscure behaviour by passing the correct field size and explicitly overwriting 'revision' field. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-bridge.h')
0 files changed, 0 insertions, 0 deletions