diff options
author | Rae Moar <[email protected]> | 2023-01-27 20:12:19 +0000 |
---|---|---|
committer | John Johansen <[email protected]> | 2023-07-06 10:58:49 -0700 |
commit | b54aebd4411134b525a82d663a26b2f135ecb7e8 (patch) | |
tree | 94a642e5dd9e758838cb58d5e9908878ccedf705 /scripts/bpf_doc.py | |
parent | 76862af5d1add618f0cc99868bc729925f9551d2 (diff) |
apparmor: fix use of strcpy in policy_unpack_test
Replace the use of strcpy() in build_aa_ext_struct() in
policy_unpack_test.c with strscpy().
strscpy() is the safer method to use to ensure the buffer does not
overflow. This was found by kernel test robot:
https://lore.kernel.org/all/[email protected]/.
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Rae Moar <[email protected]>
Signed-off-by: John Johansen <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions