Index: content/renderer/gpu/compositor_software_output_device.cc |
diff --git a/content/renderer/gpu/compositor_software_output_device.cc b/content/renderer/gpu/compositor_software_output_device.cc |
index 6132590ecee239a9399e337d7868c829a5738a7d..c37b958ad9e3f75c357726dc34e0e94bf6bd2d1c 100644 |
--- a/content/renderer/gpu/compositor_software_output_device.cc |
+++ b/content/renderer/gpu/compositor_software_output_device.cc |
@@ -201,6 +201,9 @@ void CompositorSoftwareOutputDevice::EndPaint( |
frame_data->size = viewport_size_; |
frame_data->damage_rect = damage_rect_; |
frame_data->handle = buffer->handle(); |
+ |
+ CHECK_LE(static_cast<size_t>(frame_data->size.GetArea()) * 4, |
+ buffer->shared_memory()->mapped_size()); |
} |
void CompositorSoftwareOutputDevice::ReclaimSoftwareFrame(unsigned id) { |