mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
Merge pull request #34660 from majianpeng/bluestore-pmemdevice
os/bluestore: avoid offset overflow. Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
61ad4e6bb9
@ -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