Use pixman_malloc_ab instead of plain malloc for the fbStore64_generic scratch buffer.
authorAaron Plattner <aplattner@nvidia.com>
Fri, 13 Jun 2008 16:52:53 +0000 (09:52 -0700)
committerAaron Plattner <aplattner@nvidia.com>
Fri, 13 Jun 2008 16:53:19 +0000 (09:53 -0700)
pixman/pixman-access.c

index ec187d3..ca9619c 100644 (file)
@@ -1857,7 +1857,7 @@ fbStore64_generic (pixman_image_t *image,
     assert(image->common.type == BITS);
     assert(store32);
 
-    argb8Pixels = malloc(sizeof(uint32_t) * width);
+    argb8Pixels = pixman_malloc_ab (width, sizeof(uint32_t));
     if (!argb8Pixels) return;
 
     // Contract the scanline.  We could do this in place if values weren't