segfault adding to the adblock custom list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Midori Web Browser |
Fix Released
|
High
|
André Stösel |
Bug Description
this only happens when starting midori with the adblock addon turned off; then if i turn it on and use "Block link"/"Block image" it segfaults.
if i restart midori instead, "Block link"/"Block image" works correctly.
Program terminated with signal 11, Segmentation fault.
#0 0x0808d8ca in midori_
at ../midori/
563 g_return_
(gdb) bt 3
#0 0x0808d8ca in midori_
at ../midori/
#1 0x0808da03 in midori_
at ../midori/
#2 0xb263cea2 in adblock_
at ../extensions/
(More stack frames follow...)
(gdb) p *extension
$1 = {parent_instance = {g_type_instance = {g_class = 0xf7e60}, ref_count = 3078112760,
qdata = 0xb779a8a0}, priv = 0xb7634eb6}
"extension" doesn't look good here.
description: | updated |
Changed in midori: | |
importance: | Undecided → High |
assignee: | nobody → André Stösel (ivaldi) |
Changed in midori: | |
status: | Fix Committed → Fix Released |
diff --git a/extensions/ adblock. c b/extensions/ adblock. c adblock. c adblock. c custom_ block_image_ cb (GtkWidget* widget,
index 0d46d9e..9ba8095 100644
--- a/extensions/
+++ b/extensions/
@@ -840,6 +840,7 @@ adblock_
GtkWidget* entry;
gchar* title;
+ g_return_if_fail (MIDORI_ IS_EXTENSION (extension)); extension_ get_app (extension); get_object (app, "browser");
app = midori_
browser = katze_object_
Can you please try this workaround?
callback of midori_ browser_ foreach () have only 2 arguments, while we expecting 3. which is causing MidoriExtension which we are passing to be null.