Commit 0e5c0930 authored by Dom Lachowicz's avatar Dom Lachowicz

bug 163886/163947

parent 5f6a4771
2004-01-11 Dom Lachowicz <cinamod@hotmail.com>
2005-01-13 Dom Lachowicz <cinamod@hotmail.com>
* rsvg.c: bug 163886/163947, from John Spray <jcs116@york.ac.uk>
2005-01-11 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Install gtk docs in a standard place that devhelp knows about. From Stephane LOEUILLET <LeRoutier@leroutier.net>
......
......@@ -1706,7 +1706,7 @@ rsvg_new_drawing_ctx(RsvgHandle * handle)
new_width = handle->new_width;
new_height = handle->new_height;
rowstride = (new_width * 4 + 3) & ~3;
if (rowstride > INT_MAX / new_height)
if (new_height <= 0 || rowstride > INT_MAX / new_height)
{
/* FIXME: GError here? */
g_warning (_("rsvg_start_svg: width too large"));
......@@ -1947,6 +1947,8 @@ rsvg_handle_get_pixbuf (RsvgHandle *handle)
return NULL;
draw = rsvg_new_drawing_ctx(handle);
if (!draw)
return NULL;
rsvg_defs_drawable_draw((RsvgDefsDrawable *)handle->treebase, draw, 0);
output = draw->pixbuf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment