]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: fix segfault issue in preadv/pwritev tests 5084/head
authorJevon Qiao <qiaojianfeng@unitedstack.com>
Fri, 26 Jun 2015 10:04:21 +0000 (18:04 +0800)
committerJevon Qiao <qiaojianfeng@unitedstack.com>
Tue, 30 Jun 2015 02:07:11 +0000 (10:07 +0800)
commit5614ec6cf530aee9ce39bf9ce118befa4546e735
treec0f534bf4ec189a2542ae346a7c80b047cdf3f7a
parent2ac566c8239f407982403a927611e5e56c4a4ef6
tests: fix segfault issue in preadv/pwritev tests

Previously copied the sample data to the iov buffers not yet allocated.
Now allocate buffers before writing data into them.

Fixes: #12123
Signed-off-by: Jevon Qiao <qiaojianfeng@unitedstack.com>
src/test/libcephfs/test.cc