Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2652.2697
Procedure: pvmgethome
Trace: View
Modified: Wed Sep 2 12:42:37 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 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
hd' = &$heap_43455
$heap_43455' = $input_60
bytes_after(&$heap_43455)' = $input_12 + 1
$heap_43455' is allocated by malloc
$heap_43455' is a non-heap object
bytes_before(&$heap_43455)' = 0
strlen(&$heap_43455)' = $input_12




Change Warning 2652.2697 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: