Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Null Pointer Dereference  at tdpro.c:1565

Categories: LANG.MEM.NPD CWE:476
Warning ID: 294.28969
Procedure: tm_task
Trace: view
Modified: Thu Nov 26 11:29:18 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/tdpro.c
   Enter tm_task
 1548 tm_task(tp, mp) 
 1549         struct task *tp;
 1550         struct pmsg *mp;
 1551 {
 1552         int where;
 1553         struct pmsg *mp2;
 1554         struct waitc *wp;
 1555         struct waitc *wp2 = 0;  /* master waitc of peer group */ 
 1556         int hh;
 1557         struct hostd *hp;
 1558  
 1559         if (upkuint(mp, &where)) {
 1560                 pvmlogerror("tm_task() bad msg format\n");
 1561                 return 0;
 1562         }
 1563  
true1564         mp = replymessage(mp);
mp <= 40951565         mp->m_dst = tp->t_tid;     /* Null Pointer Dereference */
Preconditions
numpmsgs = 0
Postconditions
errno' != 0
freepmsgs.m_link' = &freepmsgs.m_link
freepmsgs.m_rlink' = &freepmsgs.m_link
mp' = 0
wp2' = 0




Change Warning 294.28969 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: