Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Unreachable Data Flow  at pmsg.c:1318

Categories: LANG.STRUCT.UC CWE:561
Warning ID: 2629.2669
Procedure: enc_xdr_byte
Trace: View
Modified: Wed Sep 2 12:42:25 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
  /u1/paul/SATE/2010/c/pvm/pvm3/src/pmsg.c
  Enter enc_xdr_byte
1308 enc_xdr_byte(mp, vp, cnt, std, siz) 
1309         struct pmsg *mp;
1310         void *vp;
1311         int cnt, std, siz;
1312 {
1313         struct frag *fp;
1314         int cc;
1315  
1316         fp = mp->m_frag->fr_rlink;
1317         if (cc = bytepk(mp, (char*)vp, cnt, 1, std))   /* Redundant Condition (ID: 2628.2668) */
1318                 return cc;     /* Unreachable Data Flow */
1319         if (fp != mp->m_frag->fr_rlink) {
1320                 fp = mp->m_frag->fr_rlink;
1321                 xdrmem_create(&mp->m_xdr,
1322                                 fp->fr_dat,
1323                                 (unsigned)(fp->fr_max - (fp->fr_dat - fp->fr_buf)),
1324                                 XDR_ENCODE);
1325         }
1326         fp->fr_len = (fp->fr_len + 3) & ~3;
1327         xdr_setpos(&mp->m_xdr, fp->fr_len);
1328         return 0;
1329 




Change Warning 2629.2669 : Unreachable Data Flow

Priority:
State:
Finding:
Owner:
Note: