]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: Fix a potential risk of buffer::list::claim_prepend(list& bl, unsigned... 17661/head
authorYunfeiGuan <yunfeiguan@xtaotech.com>
Wed, 20 Sep 2017 07:39:27 +0000 (15:39 +0800)
committerYunfeiGuan <yunfeiguan@xtaotech.com>
Wed, 20 Sep 2017 07:39:27 +0000 (15:39 +0800)
commitffa1f9998ddb270e1d966ef7814feba475935eff
tree853682809332f6ce4eabd9e449d71d4f2c824c46
parentc54602caa40b99a36c31e47aa7890064cdcbbcad
librados: Fix a potential risk of buffer::list::claim_prepend(list& bl, unsigned int flags)

Last_p should point to the _buffers.begin() when push front a ptr to _buffers,
which make the bufferlist can be full amount copied.

Fixes: http://tracker.ceph.com/issues/21338
Signed-off-by: Guan yunfei <yunfei.guan@xtaotech.com>
src/common/buffer.cc
src/test/bufferlist.cc