| Index: src/images/SkImageDecoder_libico.cpp | 
| diff --git a/src/images/SkImageDecoder_libico.cpp b/src/images/SkImageDecoder_libico.cpp | 
| index 14f575babab4162f9db3706e6350af9479692a1c..ffc59e0003e1ca6706f3ea985cab37d680fdc432 100644 | 
| --- a/src/images/SkImageDecoder_libico.cpp | 
| +++ b/src/images/SkImageDecoder_libico.cpp | 
| @@ -75,7 +75,7 @@ static int calculateRowBytesFor8888(int w, int bitCount) | 
|  | 
| bool SkICOImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) | 
| { | 
| -    size_t length = stream->read(NULL, 0); | 
| +    size_t length = stream->getLength(); | 
| SkAutoMalloc autoMal(length); | 
| unsigned char* buf = (unsigned char*)autoMal.get(); | 
| if (stream->read((void*)buf, length) != length) { | 
|  |