Bug 80536 - textproc/ispell: ispell/spell seg faults on command line parsing
Summary: textproc/ispell: ispell/spell seg faults on command line parsing
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sam Lawrance
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-02 13:00 UTC by gil
Modified: 2005-12-17 11:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gil 2005-05-02 13:00:23 UTC
If you give a random option to the "spell" command in a terminal the program segmentation faults and dumps core, If you open the core file in gdb it shows that the program seg faulted at fgets(). Which this shouldnt happen...

How-To-Repeat: -bash-2.05b$ spell something_random_here
Segmentation fault (core dumped)
-bash-2.05b$
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-05-02 23:47:55 UTC
Responsible Changed
From-To: freebsd-bugs->jmz

Canonicalize and assign.
Comment 2 Kris Kennaway 2005-05-04 00:44:39 UTC
On Mon, May 02, 2005 at 11:54:26AM +0000, gil wrote:
> 
> >Number:         80536
> >Category:       misc
> >Synopsis:       ispell/spell seg faults on command line parsing
> >Confidential:   no
> >Severity:       non-critical
> >Priority:       medium
> >Responsible:    freebsd-bugs
> >State:          open
> >Quarter:        
> >Keywords:       
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Mon May 02 12:00:23 GMT 2005
> >Closed-Date:
> >Last-Modified:
> >Originator:     gil
> >Release:        5.3
> >Organization:
> pr0ger security
> >Environment:
> FreeBSD eXploit 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Wed Apr 27 19:40:16 PDT 2005     pr0ger@eXploit.lv.cox.net:/usr/src/sys/i386/compile/BSDBOX  i386
> 
> >Description:
> If you give a random option to the "spell" command in a terminal the program segmentation faults and dumps core, If you open the core file in gdb it shows that the program seg faulted at fgets(). Which this shouldnt happen...
> >How-To-Repeat:
> -bash-2.05b$ spell something_random_here
> Segmentation fault (core dumped)
> -bash-2.05b$

Please take this up with the ispell/spell developers; FreeBSD does not
separately develop this third-party software.

Kris
Comment 3 Sam Lawrance freebsd_committer freebsd_triage 2005-12-17 10:38:52 UTC
Responsible Changed
From-To: jmz->lawrance

Problem exists due to freebsd-local patches which provide a 'spell' 
command.  I'll fix it.
Comment 4 Sam Lawrance freebsd_committer freebsd_triage 2005-12-17 11:32:16 UTC
State Changed
From-To: open->closed

Fix committed, thanks for the report.