diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2025-02-18 17:57:17 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-06-17 17:57:14 -0400 |
commit | 101841c38346f4ca41dc1802c867da990ffb32eb (patch) | |
tree | b24a1cf0dc2d7ce8072a6ebc4db7a6b03b7db231 /lib/crypto/mpi/mpi-add.c | |
parent | 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff) |
[ceph] parse_longname(): strrchr() expects NUL-terminated string
... and parse_longname() is not guaranteed that. That's the reason
why it uses kmemdup_nul() to build the argument for kstrtou64();
the problem is, kstrtou64() is not the only thing that need it.
Just get a NUL-terminated copy of the entire thing and be done
with that...
Fixes: dd66df0053ef "ceph: add support for encrypted snapshot names"
Tested-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions