Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(678)

Issue 712123002: Add tests (and fix!) for known bad ICO files. (Closed)

Created:
6 years, 1 month ago by scroggo
Modified:
6 years, 1 month ago
Reviewers:
djsollen
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Add tests (and fix!) for known bad ICO files. We previously saw crashes decoding bad ICO files. Add tests for known bad files. While testing, I learned that one of them still crashes. Check for large offset and size separately to fix the crash. BUG=skia:2878 Committed: https://skia.googlesource.com/skia/+/b61e206138607423e83ba34d823c6036f394f655

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -1 line) Patch
M gyp/tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A resources/invalid_images/sigabort_favicon.ico View Binary file 0 comments Download
A resources/invalid_images/sigsegv_favicon.ico View Binary file 0 comments Download
A resources/invalid_images/sigsegv_favicon_2.ico View Binary file 0 comments Download
M src/images/SkImageDecoder_libico.cpp View 1 chunk +1 line, -1 line 0 comments Download
A tests/BadIcoTest.cpp View 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
scroggo
6 years, 1 month ago (2014-11-10 20:20:18 UTC) #2
djsollen
lgtm
6 years, 1 month ago (2014-11-10 21:00:35 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/712123002/1
6 years, 1 month ago (2014-11-10 21:04:38 UTC) #5
commit-bot: I haz the power
6 years, 1 month ago (2014-11-10 21:12:32 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/b61e206138607423e83ba34d823c6036f394f655

Powered by Google App Engine
This is Rietveld 408576698