Skip to content

Commit

Permalink
rgw: segment fault when shard id out of range
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/19732

Signed-off-by: redickwang <redickwang@tencent.com>
  • Loading branch information
redickwang committed May 19, 2017
1 parent 572281a commit ff4c40f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rgw/rgw_bucket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1730,6 +1730,8 @@ int RGWDataChangesLog::list_entries(int shard, const real_time& start_time, cons
const string& marker,
string *out_marker,
bool *truncated) {
if (shard >= num_shards)
return -EINVAL;

list<cls_log_entry> log_entries;

Expand Down

0 comments on commit ff4c40f

Please sign in to comment.