projects
/
profile
/
ivi
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1796e6b
)
Log errors for invalid rectangles passed to region code
author
Benjamin Otte
<otte@gnome.org>
Tue, 21 Jul 2009 13:00:52 +0000
(15:00 +0200)
committer
Benjamin Otte
<otte@gnome.org>
Tue, 21 Jul 2009 13:00:52 +0000
(15:00 +0200)
pixman/pixman-region.c
patch
|
blob
|
history
diff --git
a/pixman/pixman-region.c
b/pixman/pixman-region.c
index
6baf716
..
708ac7c
100644
(file)
--- a/
pixman/pixman-region.c
+++ b/
pixman/pixman-region.c
@@
-385,6
+385,7
@@
PREFIX (_init_rect) (region_type_t * region,
if (!GOOD_RECT (®ion->extents))
{
+ log_region_error (FUNC, "Invalid rectangle passed");
PREFIX (_init) (region);
return;
}
@@
-397,6
+398,7
@@
PREFIX (_init_with_extents) (region_type_t *region, box_type_t *extents)
{
if (!GOOD_RECT (extents))
{
+ log_region_error (FUNC, "Invalid rectangle passed");
PREFIX (_init) (region);
return;
}
@@
-1348,7
+1350,10
@@
PREFIX (_union_rect) (region_type_t *dest,
region.extents.y2 = y + height;
if (!GOOD_RECT (®ion.extents))
+ {
+ log_region_error (FUNC, "Invalid rectangle passed");
return PREFIX (_copy) (dest, source);
+ }
region.data = NULL;