Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Null Pointer Dereference  at ddpro.c:2877

Categories: LANG.MEM.NPD CWE:476
Warning ID: 165.28787
Procedure: dm_notify
Trace: view
Modified: Thu Nov 26 11:27:55 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/ddpro.c
   Enter dm_notify
 2859 dm_notify(hp, mp) 
 2860         struct hostd *hp;
 2861         struct pmsg *mp;
 2862 {
 2863         int what, tid;
 2864         struct waitc *wp;
 2865         struct pmsg *mp2;
 2866  
 2867         hp = hp;   /* Unused Value (ID: 164.28786) */
 2868  
 2869         upkint(mp, &what);
 2870         upkuint(mp, &tid);
 2871         if (what != PvmTaskExit) {
 2872                 pvmlogprintf("dm_notify() what = %d?\n", what);
 2873                 return 0;
 2874         }
 2875  
true2876         mp2 = mesg_new(0);
mp2 <= 40952877         mp2->m_dst = mp->m_src;     /* Null Pointer Dereference */
Preconditions
numpmsgs = 0
Postconditions
errno' != 0
freepmsgs.m_link' = &freepmsgs.m_link
freepmsgs.m_rlink' = &freepmsgs.m_link
mp2' = 0
what' = 1




Change Warning 165.28787 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: