Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Uninitialized Variable  at pvm_gstat.c:77

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 2953.3036
Procedure: main
Trace: View
Modified: Wed Sep 2 12:54:33 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/pvm_gstat.c
   Enter main
true51 main(argc, argv) 
 52 int argc;
 53 char *argv[];
 54 {
 55     int gstid;
 56     int i, j, ng;  
 57     GROUP_STRUCT group;
 58         group.len = 0; group.name = (char *) NULL;
 59         group.tids = (int *) NULL; group.btids = (int *) NULL;
 60         pvm_mytid();
 61         if((gstid = gs_getgstid()) < 0)  
 62         {
 63             fprintf(stderr, "%s: no groups server\n", argv[0]);
 64             return(-1);
 65         }
 66         pvm_setcontext( SYSCTX_DG );
 67         pvm_initsend(PvmDataDefault);
 68         pvm_send(gstid, GSLS);
 69         if ( pvm_trecv(gstid, GSLS, pvmgs_tmout) <= 0)  
 70         {
 71              fprintf(stderr, "Error receiving message from group server\n");
 72              exit (-1);
 73         }
 74        
 75         /* Unpack the information for each group                           */ 
 76         pvm_upkint(&ng, 1, 1);
ng is uninitialized77         if (ng == 0)     /* Uninitialized Variable */
Preconditions
&$unknown_3720018 >= 1
&$unknown_3720049 = $unknown_3720049
((char*)&((char*)$unknown_3720048)[72])[40] = 1
gstid >= 0
pvmautoerr = 0
pvmmytid >= -1
pvmtoplvl != 0
pvmtrc.trctid >= 1
Postconditions
((char*)&((char*)$unknown_3720048)[72])[40]' = ((char*)&((char*)$unknown_3720048)[72])[40] - 1
((char*)$unknown_3720048)[72]' = &freefrags.fr_link
argc' = $param_1
argv' = $param_2
freefrags.fr_rlink' = ((char*)&$unknown_3720048)[72]
group.name' = 0
group.tids' = 0
group.btids' = 0
group.len' = 0
gstid' = gstid
pvm_errno' = -15
pvmmytid' != -1
pvmrbuf' = 0
pvmtrc.trctid' <= 0
topvmd' = 0
ttlist' = &$unknown_3720049




Change Warning 2953.3036 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: