From 20cba06a4bc9bde60b2dc37907d11ca81ba35ce8 Mon Sep 17 00:00:00 2001 From: Matt Sarett Date: Mon, 17 Oct 2016 12:30:39 -0400 Subject: Avoid integer overflow in SkIcoCodec Definitely good to avoid overflow here. FWIW, this looks to be harmless for Android's current use. They will just fail later on when trying to allocate the bitmap. BUG=skia:5857 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3527 Change-Id: Ia1fb7d864d21ecdb127a1dd1a72cab8375cb43fb Reviewed-on: https://skia-review.googlesource.com/3527 Commit-Queue: Matt Sarett Reviewed-by: Kevin Lubick Reviewed-by: Leon Scroggins --- resources/invalid_images/int_overflow.ico | Bin 0 -> 323 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 resources/invalid_images/int_overflow.ico (limited to 'resources') diff --git a/resources/invalid_images/int_overflow.ico b/resources/invalid_images/int_overflow.ico new file mode 100644 index 0000000000..24a7c701f9 Binary files /dev/null and b/resources/invalid_images/int_overflow.ico differ -- cgit v1.2.3