#455: Fix exception in C pointer parser
-----------------------+----------------------------------------------------
Reporter: lunatik | Owner: lunatik
Type: bug | Status: new
Priority: highest | Milestone: Function pointers handling
Component: Parser: C | Version:
Severity: hard | Resolution:
Keywords: |
-----------------------+----------------------------------------------------
Old description:
> Exception will be throwing while pparser is processing static data. (on
> windiws OS, on Linux is ok)[[BR]]
>
> [http://bitbucket.org/lunatik/sacpparser-pointers link] to pointer parser
> [[BR]]
> rev: 20[[BR]]
> file: src/common/callGraphPtr.cpp[[BR]]
> line: 215[[BR]]
New description:
Exception will be throwing while pparser is processing static data. (on
windows OS, on Linux is ok)[[BR]]
[http://bitbucket.org/lunatik/sacpparser-pointers link] to pointer parser
[[BR]]
rev: 20[[BR]]
file: src/common/callGraphPtr.cpp[[BR]]
line: 215[[BR]]
Comment (by buka):
As I see, the first problem is here:
{{{
int CallGraphPtr::isFuncExist( string funcName ){
int count=func.size();
if ( 0 == count )
return -1;
for ( int i=0; i<count; ++i )
if ( funcName == func[i].name ) // <==
return i;
return -1;
}
}}}
Am I right? [[BR]]
PS the second "problem" is here: http://bitbucket.org/lunatik/sacpparser-
pointers/src/tip/sacpparser/typesOfData.h in PtrOnFunc structure
--
Ticket URL: <http://trac-hg.assembla.com/SourceAnalyzer/ticket/455#comment:1>
SourceAnalyzer <http://www.assembla.com/spaces/show/SourceAnalyzer>
Development of a tool to analyze the source code and to build call-graph
--
You received this message because you are subscribed to the Google Groups
"SourceAnalyzer Team" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sa_team?hl=en.