Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Redundant Condition  at pvmcruft.c:995

Categories: LANG.STRUCT.RC CWE:570 CWE:571
Warning ID: 240.28877
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     
ProblemLineSource
   /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) {
Never True: "lib/pvmd"[0] == 47995                 if (PVMDFILE[0] == '/')     /* Redundant Condition */
 996                         pp = PVMDFILE;   /* Unreachable Computation (ID: 241.28878) */
 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 240.28877 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: