aspell aborts with --size less than 10
Bug #710915 reported by
David Huggins-Daines
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
ProcVersionSign
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
To post a comment you must log in.
The code in 10.10 explicitly abort(3)s instead of generating an error.
aspell- 0.60.6/ lib/find_ speller. cpp: >retrieve( "size") ;
375 //
376 // Retrieve size
377 //
378 str = config-
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();