]> granicus.if.org Git - libnl/commit
route/vlan: fix memory corruption in rtnl_link_vlan_set_egress_map
authorSebastian Bixl <sebastianbixl@gmx.de>
Sun, 15 Oct 2017 20:34:01 +0000 (22:34 +0200)
committerThomas Haller <thaller@redhat.com>
Mon, 23 Oct 2017 09:01:35 +0000 (11:01 +0200)
commit6dfb40acd9b0b421b587f26840dfc072211976c2
tree77a96f4d0352d5d4063f37f600446a76d0bc848a
parent707af3ec7b4841812fce8cb19d20edab031c7a96
route/vlan: fix memory corruption in rtnl_link_vlan_set_egress_map

If you set more than four entries for the vlan egress map a memory
corruption occurs because the reallocation does not reserve memory
for more than four.

Fixes: a7469ce758fac3631df6ce72eb3f89150070e7f8
https://github.com/thom311/libnl/pull/155

[thaller@redhat.com: squashed commits and updated commit message]
lib/route/link/vlan.c