GNOME Bugzilla – Bug 380196
crash in Open Folder: iniciando sistema
Last modified: 2010-07-10 04:04:17 UTC
What were you doing when the application crashed? iniciando sistema Distribution: Ubuntu 6.10 (edgy) Gnome Release: 2.16.1 2006-10-02 (Ubuntu) BugBuddy Version: 2.16.0 Memory status: size: 74125312 vsize: 0 resident: 74125312 share: 0 rss: 14888960 rss_rlim: 0 CPU usage: start_time: 1164731837 rtime: 0 utime: 51 stime: 0 cutime:45 cstime: 0 timeout: 6 it_real_value: 0 frequency: 0 Backtrace was generated from '/usr/bin/nautilus' (no debugging symbols found) Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1227331920 (LWP 4772)] (no debugging symbols found) 0xffffe410 in __kernel_vsyscall ()
+ Trace 90039
Thread 1 (Thread -1227331920 (LWP 4772))
It seems that a validation is missing in gdk_pixbuf_loader_set_size(). The crashed is produced in libgjpeg, which is not a GNOME library, but our functions should validate which data is passed.
We do have a g_return_if_fail (width >= 0 && height >= 0) I guess we could add a g_return_if_fail (GDK_IS_PIXBUF_LOADER (loader));
Created attachment 145707 [details] [review] Added an extra validation in gdk_pixbuf_loader_set_size()
Comment on attachment 145707 [details] [review] Added an extra validation in gdk_pixbuf_loader_set_size() Patch is obviously wrong, should be fine with the obvious correction. (See how the assignment of priv is handled elsewhere in the file.)
Created attachment 153591 [details] [review] Added an extra validation in gdk_pixbuf_loader_set_size().v2 Oh yeah, you are right. Here the correct patch
Comment on attachment 153591 [details] [review] Added an extra validation in gdk_pixbuf_loader_set_size().v2 commit 64812ce662835b1967791196944b73b2d2617f7a
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.