diff options
author | Andy Shevchenko <[email protected]> | 2023-11-20 17:11:44 +0200 |
---|---|---|
committer | Kees Cook <[email protected]> | 2023-12-01 09:51:43 -0800 |
commit | 0fc79cbc937f2a754a302a710a94b68c61d0a89a (patch) | |
tree | 7c839b3086485fba045c1cbc5fef89a5a3695b24 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | fd0cd057a1b7351604daa6ffc91dfe28adf7225d (diff) |
params: Use size_add() for kmalloc()
Prevent allocations from integer overflow by using size_add().
Reviewed-by: Luis Chamberlain <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions