diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-08-11 11:24:57 +0200 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-08-22 17:28:44 +0800 |
| commit | 361fa7f813e7056cecdb24f3582ab0ad4a088e4e (patch) | |
| tree | 41611091f93195f71b7db28069060767691e264e /scripts/gdb/linux/stackdepot.py | |
| parent | 11d5674fc2e5e75ccaa13685a909c14e033544b7 (diff) | |
crypto: octeontx2 - Call strscpy() with correct size argument
In otx2_cpt_dl_custom_egrp_create(), strscpy() is called with the length
of the source string rather than the size of the destination buffer.
This is fine as long as the destination buffer is larger than the source
string, but we should still use the destination buffer size instead to
call strscpy() as intended. And since 'tmp_buf' is a fixed-size buffer,
we can safely omit the size argument and let strscpy() infer it using
sizeof().
Fixes: d9d7749773e8 ("crypto: octeontx2 - add apis for custom engine groups")
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions
