Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Unreachable Computation  at pvmcruft.c:996

Categories: LANG.STRUCT.UC CWE:561
Warning ID: 241.28878
Procedure: pvmgetpvmd
Trace: view
Modified: Thu Nov 26 11:28:20 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
LineSource
  /kat0/fletcher/SATE/2010/pvm3/src/pvmcruft.c
  Enter pvmgetpvmd
988 char * 
989 pvmgetpvmd() 
990 {
991         char *r;
992         static char *pp = 0;
993  
994         if (!pp) {
995                 if (PVMDFILE[0] == '/')   /* Redundant Condition (ID: 240.28877) */
996                         pp = PVMDFILE;     /* Unreachable Computation */
997                 else {
998                         r = pvmgetroot();
999                         pp = TALLOC(strlen(r) + strlen(PVMDFILE) + 2, char, "pvmdpath");
1000                         sprintf(pp, "%s/%s", r, PVMDFILE);   /* Buffer Overrun (ID: 242.28879) */  /* Null Pointer Dereference (ID: 243.28880) */
1001                 }
1002         }
1003         return pp;
1004 } 




Change Warning 241.28878 : Unreachable Computation

Priority:
State:
Finding:
Owner:
Note: