diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-09-15 20:16:20 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-09-15 21:09:17 +0200 |
commit | 7fa10088c93b370e7b9541db05cdfd0c68ea41cd (patch) | |
tree | 15d9a1ad51bb698aeb649d3cdf617d1a8e8b06bc /examples/exception-handler.c | |
parent | cbae3cba1964ebf367dd84524c6403a308302ace (diff) |
rtnl: allow reply nla payloads to be smaller than headsize
Some netlink replies contain attributes with embeded payloads whose
length depends on the kernel version, e.g. IFLA_INET_CONF and
IFLA_INET6_CONF.
Deal with such cases by allowing the payloads to be shorter than
the expected size and by skipping struct members which would lead
to out-of-bounds accesses.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'examples/exception-handler.c')
0 files changed, 0 insertions, 0 deletions