diff options
Diffstat (limited to 'tests/SerializationTest.cpp')
-rw-r--r-- | tests/SerializationTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp index 450f94f47e..ea03e875a2 100644 --- a/tests/SerializationTest.cpp +++ b/tests/SerializationTest.cpp @@ -463,9 +463,8 @@ DEF_TEST(Serialization, reporter) { validBitmap.setInfo(info); // Create a bitmap with a really large height - info.fHeight = 1000000000; SkBitmap invalidBitmap; - invalidBitmap.setInfo(info); + invalidBitmap.setInfo(info.makeWH(info.width(), 1000000000)); // The deserialization should succeed, and the rendering shouldn't crash, // even when the device fails to initialize, due to its size |