From 0354c62e0bb89607a29ce2150e77e3308a795cc4 Mon Sep 17 00:00:00 2001 From: Leon Scroggins III Date: Fri, 24 Feb 2017 15:33:24 -0500 Subject: Set a limit on the size for BMP images This limit matches the limit used by Chromium. I am not aware of any real world BMPs that are larger than this (or even close to it), but there are some invalid BMPs that are larger than this, leading to crashes when we try to read a row. BUG:34778578 BUG=skia:3617 Change-Id: I0f662e8d0d7bc0b084e86d0c9288b831e1b296d7 Reviewed-on: https://skia-review.googlesource.com/8966 Reviewed-by: Matt Sarett Commit-Queue: Leon Scroggins --- resources/invalid_images/b34778578.bmp | Bin 0 -> 132 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 resources/invalid_images/b34778578.bmp (limited to 'resources') diff --git a/resources/invalid_images/b34778578.bmp b/resources/invalid_images/b34778578.bmp new file mode 100644 index 0000000000..4a08a61e01 Binary files /dev/null and b/resources/invalid_images/b34778578.bmp differ -- cgit v1.2.3