Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Null Pointer Dereference  at pvmd.c:3715

Categories: LANG.MEM.NPD CWE:476
Warning ID: 283.28954
Procedure: sendmessage
Trace: view
Modified: Thu Nov 26 11:29:05 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_pstat
 912 tm_pstat(tp, mp) 
 913         struct task *tp;
 914         struct pmsg *mp;
 915 {
 916         int tid;
 917         struct hostd *hp;
 918         struct waitc *wp;
 919  
 920         /* unpack and sanity check tid */ 
 921  
 922         if (upkuint(mp, &tid)) {
 923                 pvmlogerror("tm_pstat() bad msg format\n");
 924                 return 0;
 925         }
 926         if (!TIDISTASK(tid)) {
 927                 pvmlogprintf("tm_pstat() bad tid %x\n", tid);
 928                 return 0;
 929         }
 930  
 931         /* nack if no such host */ 
 932  
 933         if (!(hp = tidtohost(hosts, tid))) {
true934                 mp = replymessage(mp);
 935                 pkint(mp, PvmNoTask);
mp <= 4095936                 sendmessage(mp);
Preconditions
hosts->ht_last >= 1
numpmsgs = 0
Postconditions
errno' != 0
ff' = 1
freepmsgs.m_link' = &freepmsgs.m_link
freepmsgs.m_rlink' = &freepmsgs.m_link
hp' = 0
hp' = 0
mp' = 0
mp' = 0




Change Warning 283.28954 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: