aspell aborts with --size less than 10

Bug #710915 reported by David Huggins-Daines
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aspell (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: aspell

running "aspell --size=N pipe" for any N less than 10 results in the following:

$ aspell --size=1 pipe
Aborted

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: aspell 0.60.6-4ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic x86_64
Architecture: amd64
Date: Mon Jan 31 16:16:09 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: aspell

Revision history for this message
David Huggins-Daines (dhuggins) wrote :
Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

The code in 10.10 explicitly abort(3)s instead of generating an error.

aspell-0.60.6/lib/find_speller.cpp:
   375 //
   376 // Retrieve size
   377 //
   378 str = config->retrieve("size");
   379 p = str.data.c_str();
   380 if (p[0] == '+' || p[0] == '-' || p[0] == '<' || p[0] == '>') {
   381 b_size.req_type = p[0];
   382 ++p;
   383 } else {
   384 b_size.req_type = '+';
   385 }
   386 if (!asc_isdigit(p[0]) || !asc_isdigit(p[1]) || p[2] != '\0')
   387 abort(); //FIXME: create an error condition here
   388 b_size.requested = atoi(p);
   389 b_size.init();

Changed in aspell (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.