gl renderer: Fix an out of bounds read
authorTimm Bäder <mail@baedert.org>
Tue, 15 Oct 2019 05:13:14 +0000 (07:13 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 15 Oct 2019 05:13:14 +0000 (07:13 +0200)
Fixes #2200

gsk/gl/gskglrenderer.c

index 82b5e3018cfb26c0a7011862ddb551c33ec25541..f5886cff3033b7d48cb3b5cfaa343822d2981e7a 100644 (file)
@@ -381,7 +381,7 @@ add_rect_outline_ops (GskGLRenderer         *self,
                       RenderOpBuilder       *builder,
                       const graphene_rect_t *rect)
 {
-  GdkRGBA *color = gdk_rgba_copy (&GDK_RGBA ("#F00")); /* Leaked */
+  GdkRGBA *color = gdk_rgba_copy (&GDK_RGBA ("F00")); /* Leaked */
 
   ops_set_program (builder, &self->color_program);
   ops_set_color (builder, color);