Merge "snapuserd: Fix ubsan when reading a single aligned sector." into main
This commit is contained in:
commit
89d22239d2
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ bool ReadWorker::ReadAlignedSector(sector_t sector, size_t sz) {
|
|||
return false;
|
||||
}
|
||||
|
||||
ret = BLOCK_SZ;
|
||||
ret = std::min(BLOCK_SZ, read_size);
|
||||
}
|
||||
|
||||
read_size -= ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue