Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Uninitialized Variable  at lpvmgen.c:3867

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 2812.2872
Procedure: pvm_hostsync
Trace: View
Modified: Wed Sep 2 12:47:59 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 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_2109300 >= 1
&$unknown_2109303 != &$unknown_2109304
&$unknown_2109303 >= 1
&$unknown_2109304 != -1
pvmautoerr != 0
pvmautoerr != 2
pvmautoerr != 3
pvmmytid = -1
pvmtoplvl != 0
Postconditions
*stderr' is allocated by fopen
bytes_before(stderr)' = 0
cc' = 0
clk' = $param_2
delta' = $param_3
host' = $param_1
myta.tv_sec' = &$unknown_2109285
mytb.tv_sec' = &$unknown_2109301
pvm_errno' = -15
pvmmytid' = &$unknown_2109304
pvmrbuf' = 0
pvmtrc.trctid' = &$unknown_2109303
rbf' = -16
sbf' = -2




Change Warning 2812.2872 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: