Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1eb66153 authored by David Anderson's avatar David Anderson Committed by Automerger Merge Worker
Browse files

Merge "snapuserd: Fix ubsan when reading a single aligned sector." into main am: 89d22239

parents fcd6f0fb 89d22239
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;