Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at pvmcruft.c:1000

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2656.2701
Procedure: pvmgetpvmd
Trace: View
Modified: Wed Sep 2 12:42:39 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
   /u1/paul/SATE/2010/c/pvm/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: 2654.2699) */
 996                         pp = PVMDFILE;   /* Unreachable Computation (ID: 2655.2700) */
 997                 else {
 998                         r = pvmgetroot();
true999                         pp = TALLOC(strlen(r) + strlen(PVMDFILE) + 2, char, "pvmdpath");
pp <= 40951000                         sprintf(pp, "%s/%s", r, PVMDFILE);     /* Null Pointer Dereference */
Preconditions
pp = 0
rd = 0
$input_12 >= 0
Postconditions
$heap_43472' = $input_60
bytes_after(&$heap_43472)' = $input_12 + 1
$heap_43472' is allocated by malloc
$heap_43472' is a non-heap object
bytes_before(&$heap_43472)' = 0
strlen(&$heap_43472)' = $input_12
pp' = 0
r' = &$heap_43472
rd' = &$heap_43472




Change Warning 2656.2701 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: