]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix bad free in RGWCreateBucket_ObjStore_S3 8762/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 26 Apr 2016 14:36:58 +0000 (10:36 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 26 Apr 2016 14:58:24 +0000 (10:58 -0400)
commit7251dbeed4f3f194b2548b986a071fa426487760
tree51e52d3a635f549337843203d17eceb7f0056ef4
parent25c2f5a793ff726facde236aa0c2dd78cf933c60
rgw: fix bad free in RGWCreateBucket_ObjStore_S3

get_params() will accept -ERR_LENGTH_REQUIRED from
rgw_rest_read_all_input(), in which case 'data' will not be allocated
and we attempt to free() an uninitialized pointer

Fixes: http://tracker.ceph.com/issues/15595
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest_s3.cc