Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at pvmdtev.c:159

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2526.2557
Procedure: tev_send_newtask
Trace: View
Modified: Wed Sep 2 12:40:22 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
   /u1/paul/SATE/2010/c/pvm/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
ctx' = $param_2
dst' = $param_1
flags' = $param_6
freepmsgs.m_link' = &freepmsgs.m_link
freepmsgs.m_rlink' = &freepmsgs.m_link
mp' = 0
name' = $param_7
ptid' = $param_5
tag' = $param_3
tid' = $param_4




Change Warning 2526.2557 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: