[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo-commit
Subject:    [cairo-commit] util/cairo-script
From:       ranma42 () kemper ! freedesktop ! org (Andrea Canciani)
Date:       2011-07-29 8:51:01
Message-ID: 20110729085101.7A748D8002 () kemper ! freedesktop ! org
[Download RAW message or body]

 util/cairo-script/cairo-script-operators.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 89cb071d14f02f062d6960b9c49bced8212d032b
Author: Andrea Canciani <ranma42@gmail.com>
Date:   Fri Jul 29 10:39:43 2011 +0200

    script: Initialize recording extents
    
    The 2-arguments recording operator was passing a garbage pointer to
    the surface creation function.
    
    Spotted by the clang static analyzer.

diff --git a/util/cairo-script/cairo-script-operators.c b/util/cairo-script/cairo-script-operators.c
index a45201f..9f9c547 100644
--- a/util/cairo-script/cairo-script-operators.c
+++ b/util/cairo-script/cairo-script-operators.c
@@ -6084,6 +6084,7 @@ _record (csi_t *ctx)
 	extents.x = extents.y = 0;
 	extents.width = _csi_object_as_real (&array->stack.objects[0]);
 	extents.height = _csi_object_as_real (&array->stack.objects[1]);
+	r = &extents;
 	break;
     case 4:
 	extents.x = _csi_object_as_real (&array->stack.objects[0]);
_______________________________________________
cairo-commit mailing list
cairo-commit@lists.cairographics.org
http://lists.cairographics.org/mailman/listinfo/cairo-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic