]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma/sys.c: fix possible out-of-bound array access
authorMichał Łyszczek <michal.lyszczek@bofc.pl>
Thu, 24 Oct 2019 21:20:43 +0000 (23:20 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 28 Oct 2019 17:33:27 +0000 (10:33 -0700)
commit6749801b062c7f97fcf2ccebd592579b2a07efc0
treef846f56bdd97c3e43c9a3d36c31e031eec848d70
parent085ab19bc38e7112f6d5e03c59ba49894bac28f0
rdma/sys.c: fix possible out-of-bound array access

netns_modes_str[] array has 2 elements, when netns_mode is 2,
condition (2 <= 2) will be true and `mode_str = netns_modes_str[2]'
will be executed, which will result in out-of-bound read.

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/sys.c