block/sed: Check received header lengths
authorJon Derrick <jonathan.derrick@intel.com>
Tue, 21 Feb 2017 18:59:15 +0000 (11:59 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 22 Feb 2017 18:54:49 +0000 (11:54 -0700)
commit77039b96316d119cea23f48b617103d50e78b840
treeaa9bef91b061b72beb2252fb325d6ea4bff7d9c8
parentcccb92417d447172c4653876f6cd4b04c29d7905
block/sed: Check received header lengths

Add a buffer size check against discovery and response header lengths
before we loop over their buffers.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Reviewed-by: Scott Bauer <scott.bauer@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/sed-opal.c