CCCC crashed on AMD64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cccc (Ubuntu) |
Fix Released
|
Medium
|
Colin Watson |
Bug Description
Binary package hint: cccc
Here is a simple test case:
$ echo foobar | /usr/bin/cccc -
CCCC - a code counter for C and C++
=======
A program to analyse C and C++ source code and report on
some simple software metrics
Version 3.pre84
Copyright Tim Littlefair, 1995, 1996, 1997, 1998, 1999, 2000
with contributions from Bill McLean, Herman Hueni, Lynn Wilson
Peter Bell, Thomas Hieber and Kenneth H. Cox.
The development of this program was heavily dependent on
the Purdue Compiler Construction Tool Set (PCCTS)
by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung,
Tom Moog and others.
This software is provided with NO WARRANTY
Parsing
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string:
Aborted (core dumped)
The package is cccc 3.pre84-2, Ubuntu Jaunty AMD64.
Attached is a patch fixing the implicit integer cast this crash stems from.