Commit 2eeab0b8 authored by Kristian Høgsberg's avatar Kristian Høgsberg

2005-07-06 Kristian Høgsberg <krh@redhat.com>

        * glib/poppler-page.cc (poppler_page_copy_to_pixbuf): Add out of
        bounds checking (from Marco).
parent b1015f6b
2005-07-06 Kristian Høgsberg <krh@redhat.com>
* glib/poppler-page.cc (poppler_page_copy_to_pixbuf): Add out of
bounds checking (from Marco).
2005-07-07 Brad Hards <bradh@frogmouth.net>
* glib/poppler-document.cc (convert_page_mode): Update to
......@@ -94,7 +99,6 @@
* qt4/tests/poppler-fonts.cpp (main): change order in test
code to reflect actual testcase file
2005-07-01 Kristian Høgsberg <krh@redhat.com>
* poppler/TextOutputDev.cc: Make selection also work when dragging
......
......@@ -219,6 +219,11 @@ poppler_page_copy_to_pixbuf (PopplerPage *page,
pixbuf_rowstride = gdk_pixbuf_get_rowstride (pixbuf);
pixbuf_n_channels = gdk_pixbuf_get_n_channels (pixbuf);
if (cairo_width > gdk_pixbuf_get_width (pixbuf))
cairo_width = gdk_pixbuf_get_width (pixbuf);
if (cairo_height > gdk_pixbuf_get_height (pixbuf))
cairo_height = gdk_pixbuf_get_height (pixbuf);
for (y = 0; y < cairo_height; y++)
{
src = (unsigned int *) (cairo_data + y * cairo_rowstride);
......
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