summaryrefslogblamecommitdiff
path: root/www-client/chromium/files/chromium-blink-template.patch
blob: edaf74b4dedd8e46f55af44e89525a056314e729 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                                                                                                              
diff --git a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
index d9fa696c9..028f9f270 100644
--- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
@@ -1773,8 +1773,9 @@ void BaseRenderingContext2D::putImageData(ImageData* data,
     data_length *= context_color_params.BytesPerPixel();
     if (!data_length.IsValid())
       return;
+	size_t dl=data_length.ValueOrDie();
     std::unique_ptr<uint8_t[]> converted_pixels(
-        new uint8_t[data_length.ValueOrDie()]);
+        new uint8_t[dl]);
     if (data->ImageDataInCanvasColorSettings(
             ColorParams().ColorSpace(), PixelFormat(), converted_pixels.get(),
             kRGBAColorType)) {