[cairo] Segfault at sweep_line_delete on video playback

David Smith sidicas2 at gmail.com
Thu Mar 20 16:43:31 PDT 2014


> diff --git a/src/cairo-bentley-ottmann-rectangular.c b/src/cairo-bentley-ottmann-rectangular.c
> index 5541bdc..042a9d8 100644
> --- a/src/cairo-bentley-ottmann-rectangular.c
> +++ b/src/cairo-bentley-ottmann-rectangular.c
> @@ -563,6 +563,9 @@ sweep_line_delete (sweep_line_t	*sweep, rectangle_t *rectangle)
>  {
>      cairo_bool_t update;
>  
> +    if (!rectangle->left && !rectangle->right)
> +	return FALSE;
> +
>      update = TRUE;
>      if (sweep->fill_rule == CAIRO_FILL_RULE_WINDING &&
>  	rectangle->left.prev->dir == rectangle->left.dir)

I tried compiling the patch and it threw this error:

cairo-bentley-ottmann-rectangular.c:566:29: error: wrong type argument
to unary exclamation mark
cairo-bentley-ottmann-rectangular.c:566:9: error: wrong type argument to
unary exclamation mark

-David Smith



More information about the cairo mailing list