Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 238.28875
Procedure: pvmgethome
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 pvmgethome
 853 char * 
 854 pvmgethome() 
 855 {
 856         static char *hd = 0;
 857 #ifndef WIN32 /* which registry should we use otherwise ? */ 
 858         if (!hd) {
 859                 if (hd = getenv("HOME")) {
true860                         hd = STRALLOC(hd);     /* Null Pointer Dereference */
Preconditions
hd = 0
$input_12 >= 0
Postconditions
errno' != 0
hd' = &$heap_75336
$heap_75336' = $input_444
bytes_after(&$heap_75336)' = $input_12 + 1
$heap_75336' is allocated by malloc
$heap_75336' is a non-heap object
bytes_before(&$heap_75336)' = 0
strlen(&$heap_75336)' = $input_12




Change Warning 238.28875 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: