mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
os/bluestore: avoid offset overflow.
Reported-by: Xiaoping Duan <xiaoping.duan@intel.com> Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
This commit is contained in:
parent
18734afab0
commit
55827fea88
@ -201,7 +201,7 @@ int PMEMDevice::write(uint64_t off, bufferlist& bl, bool buffered, int write_hin
|
||||
}
|
||||
|
||||
bufferlist::iterator p = bl.begin();
|
||||
uint32_t off1 = off;
|
||||
uint64_t off1 = off;
|
||||
while (len) {
|
||||
const char *data;
|
||||
uint32_t l = p.get_ptr_and_advance(len, &data);
|
||||
|
Loading…
Reference in New Issue
Block a user