[librsvg] Use semi-implict casting to fix a crash in pixman.



commit d6153ce93c11b2d6127d3c96a1c1b2eb55b61b39
Author: Felix Riemann <friemann gnome org>
Date:   Thu Apr 8 12:55:16 2010 +0900

    Use semi-implict casting to fix a crash in pixman.
    
    Fix for bug #589612.

 rsvg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/rsvg.c b/rsvg.c
index 2f7c71c..8c2e51b 100644
--- a/rsvg.c
+++ b/rsvg.c
@@ -87,7 +87,7 @@ rsvg_handle_get_pixbuf_sub (RsvgHandle * handle, const char *id)
 
     rowstride = dimensions.width * 4;
 
-    pixels = g_try_malloc0 (dimensions.width * dimensions.height * 4);
+    pixels = g_try_malloc0 (dimensions.width * dimensions.height * 4UL);
     if (!pixels)
         return NULL;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]