]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix out of bounds memory access when removing vendor elements
authorToby Gray <toby.gray@realvnc.com>
Mon, 6 Oct 2014 11:24:33 +0000 (12:24 +0100)
committerJouni Malinen <j@w1.fi>
Mon, 6 Oct 2014 21:43:47 +0000 (00:43 +0300)
commit45d8501555455dabce76e4481fc1a446e7c829c4
tree1604fa947f78733c459e4644d45a7225707d493a
parenta61fcc131aa6a7e396eee6a3c613001bf0475cd1
Fix out of bounds memory access when removing vendor elements

Commit 86bd36f0d5b3d359075c356d68977b4d2e7c9f71 ("Add generic
mechanism for adding vendor elements into frames") has a minor bug
where it miscalculates the length of memory to move using
os_memmove. If multiple vendor elements are specified then this can
lead to out of bounds memory accesses.

This patch fixes this by calculating the correct length of remaining
data to shift down in the information element.

Signed-off-by: Toby Gray <toby.gray@realvnc.com>
wpa_supplicant/ctrl_iface.c