mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-24 21:50:19 +01:00
Check for NULL pointer in cairo_set_scaled_font
This commit is contained in:
parent
b67d34e960
commit
d6ae23478a
1 changed files with 5 additions and 0 deletions
|
|
@ -2905,6 +2905,11 @@ cairo_set_scaled_font (cairo_t *cr,
|
|||
if (cr->status)
|
||||
return;
|
||||
|
||||
if (scaled_font == NULL) {
|
||||
status = CAIRO_STATUS_NULL_POINTER;
|
||||
goto BAIL;
|
||||
}
|
||||
|
||||
status = scaled_font->status;
|
||||
if (status)
|
||||
goto BAIL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue