]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
objecter: fix bounds checking on op reply demuxing
authorSage Weil <sage@newdream.net>
Fri, 27 Jan 2012 18:39:49 +0000 (10:39 -0800)
committerSage Weil <sage@newdream.net>
Fri, 27 Jan 2012 18:39:49 +0000 (10:39 -0800)
commit0cc26a94c8b9724588951e19b264ad26146685a3
treeb0f5a9e8612dfdbbb79ab8030270b997a0405088
parent9b554d4c7c3271b08e34d0f21bbc5922bc070bcb
objecter: fix bounds checking on op reply demuxing

We can't assume that the size of out_ops (from the reply) matches the
op->out_* vectors from our request state.  In particular, the out_ops might
be shorter than what we sent the OSD if the OSD was sloppy.  Check them.

We can assume that op->ops and op->out_* all match; assert as much in
op_submit().

Fixes: #1986
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Reviewed-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/osdc/Objecter.cc