Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 80.28670
Procedure: tev_send_endtask
Trace: view
Modified: Thu Nov 26 11:27:20 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_endtask
 400 tev_send_endtask( dst, ctx, tag, tid, status, usec, uusec, ssec, susec ) 
 401         int dst;
 402         int ctx;
 403         int tag;
 404         int tid;
 405         int status;
 406         long usec;
 407         long uusec;
 408         long ssec;
 409         long susec;
 410 {
   ...
 413         static int end = 0;
 414  
 415         struct timeval now;
 416  
 417         struct pmsg *mp;
 418  
 419         int flag;
 420         int tmp;
 421         int i;
 422  
true423         mp = mesg_new( 0 );
 424  
mp <= 4095425         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 80.28670 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: