| Index: chrome/browser/mac/install_from_dmg.mm
|
| ===================================================================
|
| --- chrome/browser/mac/install_from_dmg.mm (revision 108344)
|
| +++ chrome/browser/mac/install_from_dmg.mm (working copy)
|
| @@ -141,6 +141,10 @@
|
| CFDataRef image_path_data = static_cast<CFDataRef>(
|
| image_path_cftyperef.get());
|
| CFIndex length = CFDataGetLength(image_path_data);
|
| + if (length <= 0) {
|
| + LOG(ERROR) << "image_path_data is unexpectedly empty";
|
| + return true;
|
| + }
|
| char* image_path_c = WriteInto(image_path, length + 1);
|
| CFDataGetBytes(image_path_data,
|
| CFRangeMake(0, length),
|
|
|