From: Alex Elder Date: Wed, 6 Feb 2013 19:11:38 +0000 (-0600) Subject: rbd: prevent bytes transferred overflow X-Git-Tag: v3.9-rc1~41^2~21^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ceae7ef0fd00c965a2257c6e9eb497ca91f01c7;p=pandora-kernel.git rbd: prevent bytes transferred overflow In rbd_obj_read_sync(), verify the number of bytes transferred won't exceed what can be represented by a size_t before using it to indicate the number of bytes to copy to the result buffer. (The real motivation for this is to prepare for the next patch.) Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed