GNOME Bugzilla – Bug 308904
procedural_db_execute core dumps in case a plugin returns 0
Last modified: 2008-01-15 12:57:22 UTC
Load a very big image and try to save this as a PNG file. The PNG plugin returns 0 (I'll file a bugreport for that later) and the code in procedural_db_execute (line 315 procedural_db.c) dereferences return_args. This bombs out of course. The code in procedural_db should be able to cope with a plugin returning 0. Both 2.2 and 2.3 contain this error.
Created attachment 48273 [details] [review] proposed fix Does this change fix the problem for you ?
This fix solves the problem exactly (I can now see the error message from the PNG plugin). thanks!
Committed to both branches, closing as FIXED. 2005-06-24 Sven Neumann <sven@gimp.org> * app/pdb/procedural_db.c (procedural_db_execute): if we end up without any return values, assume an execution error instead of crashing (bug #308904).