Skip to content
Snippets Groups Projects
Commit 9fbd6d0b authored by Jonas Gorski's avatar Jonas Gorski
Browse files

b53: fix memory out of bounds access on 64 bit targets


On device reset the sizes for the vlan and port tables were wrongly
calculated based on the pointer size instead of the struct size. This
causes buffer overruns on 64 bit targets, resulting in panics.

Fix this by dereferencing the pointers.

Reported-by: default avatarFedor Konstantinov <blmink@mink.su>
Signed-off-by: default avatarJonas Gorski <jogo@openwrt.org>

SVN-Revision: 45938
parent d24d5412
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment