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

Commit 89d22239 authored by David Anderson's avatar David Anderson Committed by Gerrit Code Review
Browse files

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

parents 998c3b4f e1132a9c
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;