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

test/libcephfs: avoid buffer overflow when testing ceph_getdents() #13429

Merged
merged 1 commit into from Feb 22, 2017

Conversation

Projects
None yet
2 participants
@ukernel
Member

ukernel commented Feb 15, 2017

The buffer size should be at least "2 * sizeof(struct dirent)".
Otherwise, the code that checks dentry '..' overflow.

Fixes: http://tracker.ceph.com/issues/18941
Signed-off-by: "Yan, Zheng" zyan@redhat.com

test/libcephfs: avoid buffer overflow when testing ceph_getdents()
The buffer size should be at least "2 * sizeof(struct dirent)".
Otherwise, the code that checks dentry '..' overflow.

Fixes: http://tracker.ceph.com/issues/18941
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
@jcsp

jcsp approved these changes Feb 15, 2017

@jcsp jcsp merged commit c068fa8 into ceph:master Feb 22, 2017

3 checks passed

Signed-off-by all commits in this PR are signed
Details
Unmodifed Submodules submodules for project are unmodified
Details
default Build finished.
Details

@ukernel ukernel deleted the ukernel:wip-18941 branch Feb 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment