GNOME Bugzilla – Bug 163947
crasher: rsvg_handle_get_pixbuf doesn't check pointer returned by rsvg_new_drawing_ctx
Last modified: 2005-01-13 16:51:28 UTC
rsvg_handle_get_pixbuf uses rsvg_new_drawing_ctx to get a new DrawingCtx. However, under certain conditions rsvg_new_drawing_ctx returns NULL. rsvg_handle_get_pixbuf doesn't check this before passing the pointer to rsvg_drawing_ctx_free. This may be related to epiphany bug 163886
Created attachment 35957 [details] [review] Patch to check for division by zero in new_drawing_ctx and handle null return value in rsvg_handle_get_pixbuf This fixes bug 163886 for me, and I think it's quite reasonable regardless of that particular case.
the patch looks reasonable. i'll commit it. thanks.