Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Uninitialized Variable  at pvmgsu_core.c:949

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 2945.3028
Procedure: pvm_grphostinfo
Trace: View
Modified: Wed Sep 2 12:54:17 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_grphostinfo
true891 pvm_grphostinfo(group, hosttid, coord, nmem_onhost, nhosts) 
 892 char *group;
 893 int hosttid, *coord, *nmem_onhost, *nhosts;
 894 {
 895         GROUP_STRUCT_PTR sgroup;
 896         int foo;
 897         int info;
 898         int rbuf, rc;
 899         int sbuf, state, stid;
 900         int x;
 901         int savectx;
 902          
 903         /* BGN_TRACE( TEV_GRPHOST, group, TEV_DID_HPT, &hosttid ); */ 
 904  
 905         info = gs_host_char(group, sgroup_list, &ngroups, hosttid,
 906                         coord, nmem_onhost, nhosts, &foo);  
 907  
 908         if (info  != PvmOk )   /* info not local */ 
 909         {
 910                 if ( (stid = gs_getgstid()) < 0) { /* find the server's ti */ 
 911                         info = PvmSysErr;
 912                         /* END_TRACE( TEV_GRPHOST, TEV_DID_CC, &info ); */ 
 913                         return( info );
 914                 }
 915  
 916                 /* set context for dynamic groups */ 
 917                 savectx = pvm_setcontext( SYSCTX_DG );
 918  
 919                 sbuf = pvm_mkbuf(PvmDataDefault);
 920  
 921                 rbuf = pvm_setrbuf(0);
 922  
 923                 sbuf = pvm_setsbuf(sbuf);  
 924  
 925                 if ((info =  pvm_pkstr(group)) < 0 )
 926                         goto cleanup;
 927                  
 928                 if ((info = pvm_pkint(&hosttid,1,1)) < 0)
 929                         goto cleanup;
 930  
 931                 if ((info = pvm_send(stid,HOSTCHAR)) < 0)
 932                         goto cleanup;
 933  
 934                 if ((info = pvm_trecv(stid,HOSTCHAR,pvmgs_tmout)) <= 0)
 935                         goto cleanup;
 936  
 937                 if ((info = pvm_upkint(nhosts,1,1)) < 0)  
 938                         goto cleanup;
 939  
 940                 if ((info = pvm_upkint(nmem_onhost,1,1)) < 0)  
 941                         goto cleanup;
 942  
 943                 if ((info = pvm_upkint(coord,1,1)) < 0)  
 944                         goto cleanup;
 945          
 946                 if (( info = pvm_upkint(&state,1,1)) < 0)  
 947                         goto cleanup;
 948  
state is uninitialized949                 if (state == STATIC)       /* we've got new static group info */     /* Uninitialized Variable */
Preconditions
$param_1 >= 0
&$unknown_3655134 >= 1
pvmmytaskname = 0
pvmtoplvl != 0
Postconditions
coord' = $param_3
foo' = 2
group' = $param_1
info' = 0
nhosts' = $param_5
nmem_onhost' = $param_4
pvmautoerr' != 0
pvmautoerr' != 3
pvmautoerr' != 2
rbuf' = -2
stid' >= 0




Change Warning 2945.3028 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: