Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Uninitialized Variable  at cons.c:672

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 495.29276
Procedure: checkmsgs
Trace: view
Modified: Thu Nov 26 11:36:37 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/console/cons.c
   Enter checkmsgs
true654 checkmsgs() 
 655 {
 656         int cc;
 657         int len, cod, src;
 658         int n;
 659         struct job *jp;
 660         int *dtids;
 661         int i, j;
 662         int more, tmp;
 663         struct job *jpnext;
 664  
 665         /* Shit, really need context here to keep old pvm_nrecv(-1,-1)... */ 
 666         /* Should use 2 contexts, one for original console msgs and one   */ 
 667         /*     for tracer stuff...                                        */ 
 668  
 669         /* Get Host Add Notifies */ 
 670         while ((cc = pvm_nrecv(-1, HostsAddedTag)) > 0) {
 671                 pvm_upkint(&n, 1, 1);
n is uninitialized672                 dtids = TALLOC(n, int, "");     /* Uninitialized Variable */  /* Integer Overflow of Allocation Size (ID: 494.29275) */
Preconditions
&$unknown_12166414 >= 1
&$unknown_12166437 = $unknown_12166437
((char*)&((char*)$unknown_12166438)[56])[24] = 1
pvmautoerr = 0
pvmtoplvl != 0
Postconditions
((char*)&((char*)$unknown_12166438)[56])[24]' = ((char*)&((char*)$unknown_12166438)[56])[24] - 1
((char*)$unknown_12166438)[56]' = &freefrags.fr_link
cc' = &$unknown_12166414
freefrags.fr_rlink' = ((char*)&$unknown_12166438)[56]
pvm_errno' = -15
pvmmytid' != -1
pvmrbuf' = 0
pvmtrc.trctid' <= 0
topvmd' = 0
ttlist' = &$unknown_12166437




Change Warning 495.29276 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: