| Index: third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp
|
| index 2cb6eab842728f80179b5f961618b6ded839053e..10ccb5d41d21128766e0e79a222a79d358d1ad17 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp
|
| @@ -189,7 +189,7 @@ bool ICOImageDecoder::decodeDirectory() {
|
| }
|
|
|
| bool ICOImageDecoder::decodeAtIndex(size_t index) {
|
| - ASSERT_WITH_SECURITY_IMPLICATION(index < m_dirEntries.size());
|
| + SECURITY_DCHECK(index < m_dirEntries.size());
|
| const IconDirectoryEntry& dirEntry = m_dirEntries[index];
|
| const ImageType imageType = imageTypeAtIndex(index);
|
| if (imageType == Unknown)
|
| @@ -330,7 +330,7 @@ ICOImageDecoder::IconDirectoryEntry ICOImageDecoder::readDirectoryEntry() {
|
| ICOImageDecoder::ImageType ICOImageDecoder::imageTypeAtIndex(size_t index) {
|
| // Check if this entry is a BMP or a PNG; we need 4 bytes to check the magic
|
| // number.
|
| - ASSERT_WITH_SECURITY_IMPLICATION(index < m_dirEntries.size());
|
| + SECURITY_DCHECK(index < m_dirEntries.size());
|
| const uint32_t imageOffset = m_dirEntries[index].m_imageOffset;
|
| if ((imageOffset > m_data->size()) || ((m_data->size() - imageOffset) < 4))
|
| return Unknown;
|
|
|