Bug 344061

Summary: Segmentation Fault QtCurve Gtk2 while detail == NULL
Product: [Frameworks and Libraries] QtCurve Reporter: speps <speps>
Component: gtk2Assignee: Yichao Yu <yyc1992>
Status: RESOLVED DUPLICATE    
Severity: crash CC: hein
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: https://bugs.archlinux.org/task/43631
Latest Commit: Version Fixed In:

Description speps 2015-02-12 02:04:20 UTC
The bug is already reported here:
https://github.com/QtCurve/qtcurve-gtk2/issues/3

Here's my solution:
In gtk2/style/qtcurve.c line 375 if detail is NULL
the check strcmp(detail, "checkbutton") != 0 ) will segfault.

I solved by testing it for not being NULL before checking:
https://gist.github.com/anonymous/8e6e4ea32dabf03cf630

Cheers

Reproducible: Always

Steps to Reproduce:
1. Exec inkscape
2. Play with it for a while with qtcurve is set

Actual Results:  
Freezing occur

Expected Results:  
Work as expected
Comment 1 Yichao Yu 2015-02-12 02:11:51 UTC
And it's already reported here too.

*** This bug has been marked as a duplicate of bug 343704 ***