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

Commit 7f95a1bc authored by Andreas Gampe's avatar Andreas Gampe Committed by Android Git Automerger
Browse files

am 5eb42122: Merge "Frameworks/base: Force long computation"

* commit '5eb42122':
  Frameworks/base: Force long computation
parents e6857531 5eb42122
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -453,7 +453,7 @@ public final class DngCreator implements AutoCloseable {
                    height + ") passed to write");
        }
        long capacity = pixels.capacity();
        long totalSize = rowStride * height + offset;
        long totalSize = ((long) rowStride) * height + offset;
        if (capacity < totalSize) {
            throw new IllegalArgumentException("Image size " + capacity +
                    " is too small (must be larger than " + totalSize + ")");