Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at tdpro.c:1104

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2708.2761
Procedure: tm_spawn
Trace: View
Modified: Wed Sep 2 12:44:07 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/tdpro.c
   Enter tm_spawn
 1083 tm_spawn(tp, mp) 
 1084         struct task *tp;
 1085         struct pmsg *mp;
 1086 {
 1087         char *where = 0;                                /* location from req */ 
 1088         struct waitc *wp;                               /* 'seed' waitc */ 
 1089         struct waitc_spawn *wxp = 0;    /* new task parameters */ 
 1090         struct htab *htp;                               /* set of usable hosts */ 
 1091         struct hostd *hp;
 1092         int hh;
 1093         int i;
 1094         char *wd = 0;
 1095         char *wdenv = 0;
 1096         char *ptr;
 1097         int sz;
 1098  
 1099         /*
 1100         * unpack spawn command from task 
 1101         */ 
 1102  
true1103         wxp = TALLOC(1, struct waitc_spawn, "waix");
wxp <= 40951104         BZERO((char*)wxp, sizeof(struct waitc_spawn));     /* Null Pointer Dereference */
Postconditions
mp' = $param_2
tp' = $param_1
wd' = 0
wdenv' = 0
where' = 0
wxp' = 0




Change Warning 2708.2761 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: