]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: NULL terminate buffer before parsing it
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 11 Sep 2013 20:46:31 +0000 (13:46 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 13 Sep 2013 17:02:44 +0000 (10:02 -0700)
commite7f7483192cddca1159aba439ce62b1e78669d51
treeeea4ef1a141c3fe004eac76a31a467151550169c
parent31e3a51e933429d286104fe077e98ea883437ad6
rgw: NULL terminate buffer before parsing it

Fixes: #6175
Backport: dumpling
We get a buffer off the remote gateway which might
not be NULL terminated. The JSON parser needs the
buffer to be NULL terminated even though we provide
a buffer length as it calls strlen().

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_rados.cc