[cairo-commit] util/cairo-script
Andrea Canciani
ranma42 at kemper.freedesktop.org
Fri Jul 29 01:51:01 PDT 2011
util/cairo-script/cairo-script-operators.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 89cb071d14f02f062d6960b9c49bced8212d032b
Author: Andrea Canciani <ranma42 at 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]);
More information about the cairo-commit
mailing list