diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | pango/fonts.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2006-05-13 Behdad Esfahbod <behdad@gnome.org> + + * pango/fonts.c (pango_font_face_list_sizes): Fix possible NULL + dereference. (Coverity found) + 2006-05-11 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (pango_font_description_set_size): Update docs to note diff --git a/pango/fonts.c b/pango/fonts.c index df7b0c94..0e5de467 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -1666,7 +1666,8 @@ pango_font_face_list_sizes (PangoFontFace *face, PANGO_FONT_FACE_GET_CLASS (face)->list_sizes (face, sizes, n_sizes); else { - *sizes = NULL; + if (sizes != NULL) + *sizes = NULL; *n_sizes = 0; } } |