Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at pvmgsu_core.c:367

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2943.3026
Procedure: pvm_bcast
Trace: View
Modified: Wed Sep 2 12:53:32 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/pvmgs/pvmgsu_core.c
   Enter pvm_bcast
 338 pvm_bcast(group, msgtag) 
 339 char *group;
 340 int msgtag;
 341 {
 342         int bailout=0;
 343         int cc;
 344         int i;
 345         int mytid;
 346         int ntids;  
 347         int rbuf;
 348         int sbuf;
true349         int *tids = (int *) NULL;
 350         int x;  
 351  
 352         TEV_DECLS;
 353          
 354         BGN_TRACE( TEV_BCAST, group, TEV_DID_MC, &msgtag );
 355  
 356         if ((cc = gs_get_tidlist(group, msgtag, &ntids, &tids, 0)) < 0)
 357                 bailout = 1;  
 358  
 359         if ((mytid = pvm_mytid()) < 0 && ! bailout)  
 360         {
 361                 pvm_perror("pvm_bcast");
 362                 cc = PvmSysErr;
 363                 bailout = 1;
 364         }
 365          
 366         /* if I'm the only one in the group */ 
tids <= 4095367         if ((ntids == 1) && (tids[0] == mytid ) && ! bailout)      /* Null Pointer Dereference */  /* Uninitialized Variable (ID: 2944.3027) */
Preconditions
&$unknown_3465916 = 1
strlen($param_1) != 0
ntids = 1
pvmautoerr != 0
pvmautoerr != 2
pvmautoerr != 3
pvmmytid = -1
pvmtoplvl != 0
pvmtrc.trctid >= 1
pvmtrc.trcopt != 1
pvmtrc.trcopt != 2
pvmtrc.trcopt != 3
Postconditions
bytes_before(stderr)' = 0
bailout' = &$unknown_3465916
cc' = -14
group' = $param_1
mytid' <= -1
pvmampushed' = 0
pvmamtraced' = pvmtoplvl
pvmtoplvl' = 0
pvmtrccodef' = &pvmtrccodef_nop.enc_byte
tids' = 0




Change Warning 2943.3026 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: