Re: pixbuf new_from_xpm_data with too few lines




On Jan 14, 2008, at 3:03 PM, Kevin Ryde wrote:

The program foo.pl below gives a segv for me. There's not enough lines
in the data for what the header line says and I think
gdk_pixbuf_new_from_xpm_data() goes past the end of the array
Gtk2::Gdk::Pixbuf->new_from_xpm_data builds.  Adding a NULL at the end
keeps it out of trouble, giving either an error or a partial image.
(A NULL like that isn't actually documented as far as I can see, but of
course is pretty logical for an array of strings.)

Looks great to me.  Committed, with some unit tests.


--
I hate to break it to you, but magic data pixies don't exist.
  -- Simon Cozens





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]