Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at lpvmgen.c:1858

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2791.2850
Procedure: pvmsettaskname
Trace: View
Modified: Wed Sep 2 12:46:57 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/lpvmgen.c
   Enter pvmsettaskname
 1843 pvmsettaskname( name ) 
 1844         char *name;
 1845 {
 1846         if ( name == NULL )
 1847                 return lpvmerr( "pvmsettaskname", PvmBadParam );
 1848  
 1849         if ( pvmmytid != -1 )
 1850                 return lpvmerr( "pvmsettaskname", PvmExists );
 1851  
 1852         if ( pvmmytaskname != NULL )
 1853         {
 1854                 PVM_FREE( pvmmytaskname );
 1855                 pvmmytaskname = (char *) NULL;
 1856         }
 1857  
true1858         pvmmytaskname = STRALLOC( name );     /* Null Pointer Dereference */
Preconditions
$param_1 != 0
pvmmytaskname != 0
pvmmytid = -1
Postconditions
*pvmmytaskname' is freed
name' = $param_1
pvmmytaskname' = 0




Change Warning 2791.2850 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: