| Index: content/common/cursors/webcursor.cc
|
| diff --git a/content/common/cursors/webcursor.cc b/content/common/cursors/webcursor.cc
|
| index faa6d703b4f53169468556fe15d596ca0c1ad33e..b2dfcdf0aaaf0ccca777445bfdb9479494bc99c9 100644
|
| --- a/content/common/cursors/webcursor.cc
|
| +++ b/content/common/cursors/webcursor.cc
|
| @@ -112,8 +112,12 @@ bool WebCursor::Deserialize(base::PickleIterator* iter) {
|
| if (size_x > 0 && size_y > 0) {
|
| // The * 4 is because the expected format is an array of RGBA pixel
|
| // values.
|
| - if (size_x * size_y * 4 > data_len)
|
| + if (size_x * size_y * 4 != data_len) {
|
| + LOG(WARNING) << "WebCursor's data length and image size mismatch: "
|
| + << size_x << "x" << size_y << "x4 != "
|
| + << data_len;
|
| return false;
|
| + }
|
|
|
| hotspot_.set_x(hotspot_x);
|
| hotspot_.set_y(hotspot_y);
|
|
|