Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Uninitialized Variable  at lpvmpack.c:770

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 357.29043
Procedure: pvm_bufinfo
Trace: view
Modified: Thu Nov 26 11:30:01 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/lpvmpack.c
   Enter pvm_bufinfo
true731 pvm_bufinfo(mid, len, code, tid) 
 732         int mid;
 733         int *len;
 734         int *code;
 735         int *tid;
 736 {
 737         struct pmsg *mp;
 738         int cc;
 739         TEV_DECLS 
 740  
 741         if (TEV_EXCLUSIVE) {
 742                 if (TEV_DO_TRACE(TEV_BUFINFO,TEV_EVENT_ENTRY)) {
 743                         TEV_PACK_INT( TEV_DID_MB, TEV_DATA_SCALAR, &mid, 1, 1 );
 744                         TEV_FIN;
 745                 }
 746         }
 747  
 748         if (mid <= 0)
 749                 cc = PvmBadParam;
 750         else 
 751                 if (mp = midtobuf(mid)) {
 752                         cc = PvmOk;
 753                         if (len) {
 754                                 if (mp->m_flag & MM_PACK)
 755                                         pmsg_setlen(mp);
 756                                 *len = mp->m_len;
 757                         }
 758                         if (code)
 759                                 *code = mp->m_tag;
 760                         if (tid)
 761                                 *tid = mp->m_src;
 762                 } else 
 763                         cc = PvmNoSuchBuf;
 764  
 765         if (TEV_AMEXCL) {
 766                 if (TEV_DO_TRACE(TEV_BUFINFO,TEV_EVENT_EXIT)) {
 767                         int ln, tg, sc;
 768                         TEV_PACK_INT( TEV_DID_CC, TEV_DATA_SCALAR, &cc, 1, 1 );
 769                         if (!cc) {
mp is uninitialized770                                 ln = mp->m_len;     /* Uninitialized Variable */  /* Null Pointer Dereference (ID: 356.29042) */
Preconditions
mid <= 0
&$unknown_1378645 >= 1
&$unknown_1378654 = 32768
&$unknown_1378655 != 0
pvmmytid = -1
pvmtoplvl != 0
Postconditions
cc' = 0
pvm_useruid' != -1
pvmampushed' = 0
pvmamtraced' = pvmtoplvl
pvmmytid' = -1
pvmtoplvl' = 0
pvmtrc.trctid' = &$unknown_1378645
topvmd' = 0




Change Warning 357.29043 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: