summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-12-13 12:04:52 +0100
committerTyler Hicks <code@tyhicks.com>2025-12-23 15:23:23 -0600
commitc82f77a4ac9589a5d73d4caaa439fa670c684455 (patch)
tree730dc87df52968dfd4739c89140f12776d11086e /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent3bdc6cace25c3c7adfc073bb763bb52c9d1282c8 (diff)
ecryptfs: Replace strcpy with strscpy in ecryptfs_cipher_code_to_string
strcpy() has been deprecated [1] because it performs no bounds checking on the destination buffer, which can lead to buffer overflows. Since the parameter 'char *str' is just a pointer with no size information, extend the function with a 'size' parameter to pass the destination buffer's size as an additional argument. Adjust the call sites accordingly. Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy [1] Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Tyler Hicks <code@tyhicks.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions