]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async: size of EventCenter::file_events should be greater than fd. 20764/head
authorYupeng Chen <chenyupeng-it@360.cn>
Wed, 7 Mar 2018 05:17:21 +0000 (13:17 +0800)
committerYupeng Chen <chenyupeng-it@360.cn>
Wed, 7 Mar 2018 07:14:33 +0000 (15:14 +0800)
commit39023b5bfc48cea4ab12d432de285956dacc0571
treea1c67ce6d9797fab2a674f03dde26a1ed1fdcc0f
parentfd1e57c2de93f0fce6a3e239ad1c041040185182
msg/async: size of EventCenter::file_events should be greater than fd.

When trying to generate a file event from an FD greater than or equal to the size of file_events vector,
make sure that the resized vector can hold the FD safely.

Fixes: http://tracker.ceph.com/issues/23253
Signed-off-by: Yupeng Chen <chenyupeng-it@360.cn>
src/msg/async/Event.cc