Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Null Pointer Dereference  at pvmcruft.c:1000

Categories: LANG.MEM.NPD CWE:476
Warning ID: 243.28880
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) {
 995                 if (PVMDFILE[0] == '/')   /* Redundant Condition (ID: 240.28877) */
 996                         pp = PVMDFILE;   /* Unreachable Computation (ID: 241.28878) */
 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 */  /* Buffer Overrun (ID: 242.28879) */
Preconditions
pp = 0
rd = 0
$input_12 >= 0
Postconditions
errno' != 0
$heap_75380' = $input_444
bytes_after(&$heap_75380)' = $input_12 + 1
$heap_75380' is allocated by malloc
$heap_75380' is a non-heap object
bytes_before(&$heap_75380)' = 0
strlen(&$heap_75380)' = $input_12
pp' = 0
r' = &$heap_75380
rd' = &$heap_75380




Change Warning 243.28880 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: