]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/kms/vault - 0 terminate before rapidjson
authorMarcus Watts <mwatts@redhat.com>
Fri, 8 Jan 2021 22:43:58 +0000 (17:43 -0500)
committerMarcus Watts <mwatts@redhat.com>
Sat, 6 Mar 2021 04:05:13 +0000 (23:05 -0500)
commit30ee3d473bed7318491fc28c7eaa66e8b7633c75
treede31ad82f9b6a8bede00da00093e9af62d7c5937
parenta9edb632a5a8a768b1cbb5fa855aa22246b06c6a
rgw/kms/vault - 0 terminate before rapidjson

bufferlist c_str() doesn't guarantee a trailing nul, which is req'd
by rapidjson.  So, append a nul to make that guarantee explicit.

Also, add an optional "virtual" so unit test logic can override
send_request().

Fixes: http://tracker.ceph.com/issues/48746
Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/rgw_kms.cc