mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-08 23:10:36 +01:00
[image] Do not trust user supplied data to be clear
Gah, more important than the whitespace was the reversal of is_clear...
This commit is contained in:
parent
03bce099ea
commit
c8a4f48671
1 changed files with 1 additions and 1 deletions
|
|
@ -394,7 +394,7 @@ _cairo_image_surface_create_with_pixman_format (unsigned char *data,
|
|||
}
|
||||
|
||||
/* we can not make any assumptions about the initial state of user data */
|
||||
((cairo_image_surface_t *) surface)->is_clear = data != NULL;
|
||||
((cairo_image_surface_t *) surface)->is_clear = data == NULL;
|
||||
return surface;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue