Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Unreachable Control Flow  at pmsg.c:1370

Categories: LANG.STRUCT.UC CWE:561
Warning ID: 217.28849
Procedure: enc_xdr_int
Trace: view
Modified: Thu Nov 26 11:28:14 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     
LineSource
  /kat0/fletcher/SATE/2010/pvm3/src/pmsg.c
  Enter enc_xdr_int
1358 enc_xdr_int(mp, vp, cnt, std, siz) 
1359         struct pmsg *mp;
1360         void *vp;
1361         int cnt, std, siz;
1362 {
1363         register int *np;
1364         int cc = 0;
1365  
1366         for (np = (int*)vp; cnt-- > 0; np += std)
1367                 if (!xdr_int(&mp->m_xdr, np)) {
1368                         mp->m_frag->fr_rlink->fr_len = xdr_getpos(&mp->m_xdr);
1369                         if (cc = enc_xdr_step(mp))   /* Redundant Condition (ID: 216.28848) */
1370                                 break;     /* Unreachable Control Flow */
1371                         else 
1372                                 if (!xdr_int(&mp->m_xdr, np)) {
1373                                         cc = PvmNoMem;
1374                                         break;
1375                                 }
1376                 }
1377         mp->m_frag->fr_rlink->fr_len = xdr_getpos(&mp->m_xdr);
1378         return cc;
1379 } 




Change Warning 217.28849 : Unreachable Control Flow

Priority:
State:
Finding:
Owner:
Note: