Loading libs/hwui/jni/BitmapFactory.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ #include <fcntl.h> #include <memory> #include <stdio.h> #include <stdint.h> #include <sys/stat.h> jfieldID gOptions_justBoundsFieldID; Loading Loading @@ -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; } Loading Loading
libs/hwui/jni/BitmapFactory.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ #include <fcntl.h> #include <memory> #include <stdio.h> #include <stdint.h> #include <sys/stat.h> jfieldID gOptions_justBoundsFieldID; Loading Loading @@ -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; } Loading