Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cls/rgw: test before accessing pkeys->rbegin() #28391

Merged
merged 1 commit into from Jun 5, 2019

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Jun 4, 2019

if pkeys is empty here, dereferencing rbegin() will crash

follow-up fix for #28188

Fixes: http://tracker.ceph.com/issues/39984

if pkeys is empty here, dereferencing rbegin() will crash

Fixes: http://tracker.ceph.com/issues/39984

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley
Copy link
Contributor Author

cbodley commented Jun 4, 2019

cc @tianshan

Copy link
Contributor

@mattbenjamin mattbenjamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks logically correct

@cbodley cbodley merged commit 93c056c into ceph:master Jun 5, 2019
@cbodley cbodley deleted the wip-39984 branch June 5, 2019 13:06
@tianshan
Copy link
Contributor

tianshan commented Jun 5, 2019

yes it's possible, my mistake...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants