Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 22114.29064
Procedure: pvm_tc_settrace
Trace: view
Modified: Thu Nov 26 11:30:54 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_tc_settrace
true1083 pvm_tc_settrace(mid) 
 1084         int mid;
 1085 {
 1086         int trctid;
 1087         int trcctx;
 1088         int trctag;
 1089         int outtid;
 1090         int outctx;
 1091         int outtag;
 1092         char buf[256];
 1093         int tbuf;
 1094         int topt;
 1095  
 1096         pvm_upkint(&trctid, 1, 1);
 1097         pvm_upkint(&trcctx, 1, 1);
 1098         pvm_upkint(&trctag, 1, 1);
 1099         pvm_upkint(&outtid, 1, 1);
 1100         pvm_upkint(&outctx, 1, 1);
 1101         pvm_upkint(&outtag, 1, 1);
 1102         pvm_upkstr(buf);
 1103         pvm_upkint(&tbuf, 1, 1);
 1104         pvm_upkint(&topt, 1, 1);
 1105  
 1106         if (trctid) {   /* Uninitialized Variable (ID: 22116.29066) */
 1107                 /* cheat on trcctx & trctag to avoid race */ 
 1108                 pvmtrc.trcctx = trcctx;   /* Uninitialized Variable (ID: 22115.29065) */
 1109                 pvmtrc.trctag = trctag;   /* Uninitialized Variable (ID: 22113.29063) */
 1110                 pvm_setopt( PvmSelfTraceTid, trctid );
 1111                 if (strlen(buf) + 1 == TEV_MASK_LENGTH)   /* Uninitialized Variable (ID: 22112.29061) */
 1112                         BCOPY(buf, pvmtrc.tmask, TEV_MASK_LENGTH);
 1113                 else {
 1114                         TEV_MASK_INIT(pvmtrc.tmask);
 1115                         pvmlogerror("pvm_tc_settrace() bogus trace mask\n");
 1116                 }
   ...
 1122                         pvmlogerror("pvm_tc_settrace() bogus trace buffering\n");
 1123                 }
 1124                 if (topt >= 0)   /* Uninitialized Variable (ID: 22110.29059) */
 1125                         pvmtrc.trcopt = topt;
 1126                 else {
 1127                         pvmtrc.trcopt = 0;
 1128                         pvmlogerror("pvm_tc_settrace() bogus trace options\n");
 1129                 }
 1130         }
 1131  
 1132         if (outtid) {   /* Uninitialized Variable (ID: 368.29058) */
 1133                 /* cheat on outctx & outtag to avoid race */ 
outctx is uninitialized1134                 pvmtrc.outctx = outctx;     /* Uninitialized Variable */
Preconditions
&$unknown_2949956 != 0
&$unknown_2949959 != 0
strlen(&$unknown_2949956) <= 97
strlen(&$unknown_2949956) >= -30
myfmt != -1
nxtmidhsiz <= pvmmidhsiz
outtid != 0
pvmautoerr != 0
pvmautoerr != 2
pvmautoerr != 3
pvmmidhfree = 0
pvmmidhsiz != 0
pvmmytid = -1
pvmrbuf != 0
pvmtoplvl != 0
pvmtrc.trctid >= 1
Postconditions
((char*)$unknown_2949954)[4]' = ((char*)&$unknown_2949954)[4]
((char*)$unknown_2949954)[4]' = $unknown_2949954
*stderr' is allocated by fopen
bytes_before(stderr)' = 0
$unknown_2949954' = &$unknown_2949954
((char*)&$unknown_2949954)[16]' = 0
((char*)&$unknown_2949954)[20]' = 1
((char*)&$unknown_2949954)[24]' = 0
((char*)&$unknown_2949954)[28]' = 0
((char*)&$unknown_2949954)[32]' = 0
((char*)&$unknown_2949954)[36]' = 0
((char*)&$unknown_2949954)[40]' = 0
((char*)&$unknown_2949954)[4]' = &$unknown_2949954
((char*)&$unknown_2949954)[44]' = 0
((char*)&$unknown_2949954)[48]' = 0
((char*)&$unknown_2949954)[52]' = 0
((char*)&$unknown_2949954)[56]' = 0
((char*)&$unknown_2949954)[60]' = 0
((char*)&$unknown_2949954)[64]' = 0
((char*)&$unknown_2949954)[8]' = 0
((char*)&$unknown_2949954)[12]' = 0
errno' != 0
freepmsgs.m_link' = &$unknown_2949954
$heap_364621' = &$heap_364621
bytes_after(&$heap_364621)' = 64
$heap_364621' is allocated by malloc
$heap_364621' is allocated
bytes_before(&$heap_364621)' = 0
((char*)&$heap_364621)[4]' = &$heap_364621
myfmt' != -1
newline' = 0
pvm_errno' = -15
pvm_useruid' != -1
pvmmydsig' = myfmt'
pvmmytid' = -1
pvmrbuf' = &$unknown_2949959
pvmrxlist' = &$unknown_2949954
pvmtrc.trctid' >= 1
td' = &$unknown_2949956
trctid' = 0
ttlist' = &$heap_364621




Change Warning 22114.29064 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: