| Index: src/codec/SkCodec_libico.cpp
|
| diff --git a/src/codec/SkCodec_libico.cpp b/src/codec/SkCodec_libico.cpp
|
| index 798169d82b344902571d996d34c127818b3576e7..f0306947e86976c84b968b6d6554a4a15f49e403 100644
|
| --- a/src/codec/SkCodec_libico.cpp
|
| +++ b/src/codec/SkCodec_libico.cpp
|
| @@ -133,6 +133,9 @@ SkCodec* SkIcoCodec::NewFromStream(SkStream* stream) {
|
| SkData::NewFromStream(inputStream.get(), size));
|
| if (nullptr == data.get()) {
|
| SkCodecPrintf("Warning: could not create embedded stream.\n");
|
| + // FIXME: This is a good solution if we have already created at
|
| + // least one valid codec. Otherwise, we may want to try to
|
| + // partially decode this incomplete embedded image.
|
| break;
|
| }
|
| SkAutoTDelete<SkMemoryStream> embeddedStream(new SkMemoryStream(data.get()));
|
|
|