diff options
author | J. Bruce Fields <bfields@redhat.com> | 2020-09-05 10:03:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-23 08:44:26 +0200 |
commit | 0803f17bb33cc0213c5b9ac89c9b3f3443006d14 (patch) | |
tree | c008b92cc137f24dd91fdc980a435465022ae85a /crypto | |
parent | cee87e423b21711aec82fe0f80c6ecc968e7c0c6 (diff) |
SUNRPC: stop printk reading past end of string
[ Upstream commit 8c6b6c793ed32b8f9770ebcdf1ba99af423c303b ]
Since p points at raw xdr data, there's no guarantee that it's NULL
terminated, so we should give a length. And probably escape any special
characters too.
Reported-by: Zhi Li <yieli@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions