rtnl_link: enhance decoding of struct rtnl_link_stats{,64}
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 1 Sep 2017 08:41:08 +0000 (08:41 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 1 Sep 2017 08:41:08 +0000 (08:41 +0000)
commit90695173828c729a80b332b584bd288a1acb30bf
treeab7de5c98c2f7de72d9c582bcaf1433c2e3941d5
parentb738f44a524772498bb08093eb109d38b6510355
rtnl_link: enhance decoding of struct rtnl_link_stats{,64}

Enhance runtime detection of struct rtnl_link_stats.rx_nohandler
and struct rtnl_link_stats64.rx_nohandler.

* rtnl_link.c (decode_rtnl_link_stats): Do not accept structure length
greater than min_size but less than sizeof(struct rtnl_link_stats).
(decode_rtnl_link_stats64): Likewise, so not accept structure length
greater than min_size but less than sizeof(struct rtnl_link_stats64).
rtnl_link.c