From: gnome-perl (bugzilla.gnome.o. <bug...@gn...> - 2013-02-17 23:53:17
|
https://bugzilla.gnome.org/show_bug.cgi?id=694051 gnome-perl | Gtk2 | unspecified Summary: GdkPixbuf new_from_data() length check Classification: Bindings Product: gnome-perl Version: unspecified OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: Normal Component: Gtk2 AssignedTo: gtk...@li... ReportedBy: us...@zi... QAContact: gtk...@li... GNOME version: --- Created an attachment (id=236511) View: https://bugzilla.gnome.org/attachment.cgi?id=236511 Review: https://bugzilla.gnome.org/review?bug=694051&attachment=236511 patch and test This is my idea from a while ago to check that gdk_pixbuf_new_from_data() has the data string long enough for the given width,height,rowstride, so that dodgy inputs don't cause a segv for going past the end of the data string. There's no string length passed to gdk, it's the caller's responsibility to ensure the data block is big enough. The aim here would be to stop dubious values at the perl level from crashing the interpreter. -- Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |