Bug 96783

Summary: Crash in x11/gtk2-theme-switch
Product: Ports & Packages Reporter: markzero <markzero>
Component: Individual Port(s)Assignee: Ion-Mihai "IOnut" Tetcu <itetcu>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description markzero 2006-05-04 18:10:13 UTC
gtk2-theme-switch does not check the return value of the fopen()
call in ok_clicked(), line 210 inside switch.c. For some reason,
I had some strange permissions on the ~/gtkrc-2.0 file that it
attempted to open and write to. The call failed and an invalid
pointer was passed to fprintf, causing a crash.

Fix: 

A simple fix would be to check the return value of the fopen()
call and display some sort of error. I don't know the gtk toolkit
well enough to do this though.

There are a quite a few unchecked fopen() calls in this program.
Be warned!
How-To-Repeat: 
$ chmod 000 ~/.gtkrc-2.0

$ gtk2-theme-switch

(click 'apply')

crash!
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-05-04 22:09:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-06-17 22:18:46 UTC
State Changed
From-To: feedback->open

Maintainer timeout
Comment 3 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-06-22 13:39:59 UTC
Responsible Changed
From-To: freebsd-ports-bugs->itetcu

I'll take it.
Comment 4 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-06-23 21:13:38 UTC
State Changed
From-To: open->suspended
Comment 5 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-08-06 14:37:39 UTC
State Changed
From-To: suspended->closed

The port has expired a few days back and it will be removed soon.