Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RADOS_KV: do copy in rados_kv_get before releasing read op
Jason Dillaman pointed out that we're relying on these strings to remain valid after releasing the read op in rados_kv_get. That's not guaranteed to work. Change rados_kv_get to copy the string into the destination buffer before releasing the op. Change-Id: Ia11e10a7ca113876d8ba4f1a5fa2851fa683d1a8 Reported-by: Jason Dillaman <jdillama@redhat.com> Signed-off-by: Jeff Layton <jlayton@redhat.com>
- Loading branch information
Showing
3 changed files
with
10 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters