summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2015-11-29 01:48:57 +0100
committerAntonio Quartulli <a@unstable.cc>2016-01-07 14:24:05 +0800
commit13bbdd370f67aef3351ad7bbc2fb624e3c23f905 (patch)
treeacd51cfcb64861c0a2e6c67e85eabeab0db36fea /drivers
parent51cb67c0b0fcb91581b15bd2e85f29af4d4b2df6 (diff)
batman-adv: Fix invalid read while copying bat_iv.bcast_own
batadv_iv_ogm_orig_del_if removes a part of the bcast_own which previously belonged to the now removed interface. This is done by copying all data which comes before the removed interface and then appending all the data which comes after the removed interface. The address calculation for the position of the data which comes after the removed interface assumed that the bat_iv.bcast_own is a pointer to a single byte datatype. But it is a pointer to unsigned long and thus the calculated position was wrong off factor sizeof(unsigned long). Fixes: 83a8342678a0 ("more basic routing code added (forwarding packets / bitarray added)") Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Antonio Quartulli <a@unstable.cc>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions