GNOME Bugzilla – Bug 613658
null string checking in RBSource_do_impl_search python binding
Last modified: 2010-03-27 04:06:15 UTC
I'm writing a python plugin providing custom BrowserSource. When I define do_impl_search method like below, Rhythmbox crashes on activating that source: > def do_impl_search(self, rbsourcesearch, curtext, newtext): > pass Here are few first lines of backtrace, from which it is clearly seen that unchecked null string is passed to PyString_FromString():
+ Trace 221048
I have the same problem, as soon as do_impl_search method is added, application crashes with Segmentation fault.
Created attachment 157074 [details] [review] added manual override with null string checking I've fixed the bug, here is the patch.
*** Bug 596928 has been marked as a duplicate of this bug. ***
Bug 589253 has a patch for pygobject that would allow us to fix this properly.
Pushed as commit 7bf70b5. Some day when the pygobject bug is fixed, we can remove this.