diff options
author | 2023-01-27 20:12:19 +0000 | |
---|---|---|
committer | 2023-07-06 10:58:49 -0700 | |
commit | b54aebd4411134b525a82d663a26b2f135ecb7e8 (patch) | |
tree | 94a642e5dd9e758838cb58d5e9908878ccedf705 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | apparmor: fix kernel-doc complaints (diff) | |
download | wireguard-linux-b54aebd4411134b525a82d663a26b2f135ecb7e8.tar.xz wireguard-linux-b54aebd4411134b525a82d663a26b2f135ecb7e8.zip |
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/202301040348.NbfVsXO0-lkp@intel.com/.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Rae Moar <rmoar@google.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions