Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Uninitialized Variable  at pvmgsu_core.c:367

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 538.29330
Procedure: pvm_bcast
Trace: view
Modified: Thu Nov 26 11:37:34 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/pvmgs/pvmgsu_core.c
   Enter pvm_bcast
true338 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;
 349         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 */ 
ntids is uninitialized367         if ((ntids == 1) && (tids[0] == mytid ) && ! bailout)      /* Uninitialized Variable */  /* Null Pointer Dereference (ID: 539.29329) */
Preconditions
&$unknown_12761373 != 0
strlen(group) != 0
gstid <= -1
pvmautoerr = 0
pvmmytid = -1
pvmtoplvl != 0
pvmtrc.trctid >= 1
pvmtrc.trcopt != 1
pvmtrc.trcopt != 2
pvmtrc.trcopt != 3
Postconditions
bailout' = 1
cc' = -14
mytid' <= -2
pvm_errno' = mytid'
pvmampushed' = 0
pvmamtraced' = pvmtoplvl
pvmmytid' = mytid'
pvmtoplvl' = 0
pvmtrccodef' = &pvmtrccodef_nop.enc_byte
tids' = 0




Change Warning 538.29330 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: