Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Uninitialized Variable  at lpvmgen.c:3867

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 393.29099
Procedure: pvm_hostsync
Trace: view
Modified: Thu Nov 26 11:32: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/src/lpvmgen.c
   Enter pvm_hostsync
true3844 pvm_hostsync(host, clk, delta) 
 3845         int host;                               /* pvmd tid of host */ 
 3846         struct timeval *clk;    /* current time on host */ 
 3847         struct timeval *delta;  /* time relative to local clock */ 
 3848 {
 3849         int cc;
 3850         int sbf, rbf;
 3851         struct timeval myta, mytb, remt;
 3852         int i[2];
 3853  
 3854         if (!(cc = BEATASK)) {
 3855                 sbf = pvm_setsbuf(pvm_mkbuf(PvmDataFoo));
 3856                 rbf = pvm_setrbuf(0);
 3857                 pvm_pkint(&host, 1, 1);
 3858  
 3859                 gettimeofday(&myta, (struct timezone *) NULL);
 3860                 if ((cc = msendrecv(TIDPVMD, TM_HOSTSYNC,SYSCTX_TM)) > 0) {
 3861                         gettimeofday(&mytb, (struct timezone *) NULL);
 3862  
 3863                         pvm_upkint(&cc, 1, 1);
 3864                         if (cc >= 0) {
 3865                                 cc = 0;
 3866                                 pvm_upkint(i, 2, 1);
i is uninitialized3867                                 remt.tv_sec = i[0];     /* Uninitialized Variable */
Preconditions
&$unknown_6680967 >= 1
pvmautoerr = 0
pvmmytid = -1
pvmtoplvl != 0
Postconditions
cc' = 0
errno' != 0
myta.tv_sec' = &$unknown_6680952
pvm_errno' = -15
pvmmytid' != -1
pvmrbuf' = 0
pvmtrc.trctid' <= 0
topvmd' = 0




Change Warning 393.29099 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: