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

Commit bab0bb37 authored by Kevin Lubick's avatar Kevin Lubick
Browse files

Remove usage of SK_MaxS32

This will be removed from the public API.
skbug.com/13983

Change-Id: I4b4e6a8f2f5b8e1bb2633062f347e807703add78
parent 5c054419
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
#include <fcntl.h>
#include <memory>
#include <stdio.h>
#include <stdint.h>
#include <sys/stat.h>

jfieldID gOptions_justBoundsFieldID;
@@ -142,7 +143,7 @@ public:
        }

        const size_t size = info.computeByteSize(bitmap->rowBytes());
        if (size > SK_MaxS32) {
        if (size > INT32_MAX) {
            ALOGW("bitmap is too large");
            return false;
        }