Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Null Pointer Dereference  at pvmdtev.c:159

Categories: LANG.MEM.NPD CWE:476
Warning ID: 115.28735
Procedure: tev_send_newtask
Trace: view
Modified: Thu Nov 26 11:27:40 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/pvmdtev.c
   Enter tev_send_newtask
 136 tev_send_newtask( dst, ctx, tag, tid, ptid, flags, name ) 
 137         int dst;
 138         int ctx;
 139         int tag;
 140         int tid;
 141         int ptid;
 142         int flags;
 143         char *name;
 144 {
 145         static int checklist[CHECKLISTSIZE];
 146         static int start = 0;
 147         static int end = 0;
 148  
 149         struct timeval now;
 150  
 151         struct pmsg *mp;
 152  
 153         int flag;
 154         int tmp;
 155         int i;
 156  
true157         mp = mesg_new( 0 );
 158  
mp <= 4095159         mp->m_ctx = ctx;     /* Null Pointer Dereference */
Preconditions
numpmsgs = 0
Postconditions
errno' != 0
freepmsgs.m_link' = &freepmsgs.m_link
freepmsgs.m_rlink' = &freepmsgs.m_link
mp' = 0




Change Warning 115.28735 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: