Skip to content
Snippets Groups Projects
Commit f4a2d282 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by John Johansen
Browse files

apparmor: Use struct_size() helper in kzalloc()

Make use of the struct_size() helper instead of an open-coded version,
in order to avoid any potential type mistakes or integer overflows that,
in the worse scenario, could lead to heap overflows.

Link: https://github.com/KSPP/linux/issues/160


Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent 4d47fbbe
No related branches found
No related tags found
Loading
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