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

librados: potential null pointer access in list_(n)objects #6639

Merged
merged 2 commits into from Dec 31, 2015

Conversation

xiexingguo
Copy link
Member

In list_objects and list_nobjects, we are possibly access a null returned pointer from the osdmap->get_pg_pool() call.
Fixes: #13822
Signed-off-by: xie xingguo xie.xingguo@zte.com.cn

@tchaikov tchaikov self-assigned this Nov 19, 2015
@liewegas
Copy link
Member

looks reasonable to me. can you please add a test to test/librados/list.cc ?

@tchaikov
Copy link
Contributor

lgtm also. agreed with sage.

@tchaikov
Copy link
Contributor

ping @xiexingguo ?

@athanatos
Copy link
Contributor

This needs a test before merge.

@liewegas
Copy link
Member

@xiexingguo could you please rebase on latest master? Thanks!

xiexingguo and others added 2 commits December 20, 2015 17:35
In list_objects and list_nobjects, we are possibly access a null returned pointer from the osdmap->get_pg_pool() call.
Fixes: ceph#13822
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@xiexingguo
Copy link
Member Author

@liewegas Rebased. Thank you for your reminder:))

liewegas added a commit that referenced this pull request Dec 31, 2015
librados: potential null pointer access in list_(n)objects

Reviewed-by: Kefu Chai <kchai@redhat.com>
@liewegas liewegas merged commit da58110 into ceph:master Dec 31, 2015
@xiexingguo xiexingguo deleted the xxg-wip-13822 branch December 31, 2015 14:37
@ghost ghost changed the title Objecter: potential null pointer access in list_(n)objects. librados: potential null pointer access in list_(n)objects Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants