Bug 344061 - Segmentation Fault QtCurve Gtk2 while detail == NULL
Summary: Segmentation Fault QtCurve Gtk2 while detail == NULL
Status: RESOLVED DUPLICATE of bug 343704
Alias: None
Product: QtCurve
Classification: Frameworks and Libraries
Component: gtk2 (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Yichao Yu
URL: https://bugs.archlinux.org/task/43631
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-12 02:04 UTC by speps
Modified: 2015-02-12 02:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***