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: 310.28987
Procedure: sendmessage
Trace: view
Modified: Thu Nov 26 11:29:23 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_mstat
 2135 tm_mstat(tp, mp) 
 2136         struct task *tp;
 2137         struct pmsg *mp;
 2138 {
 2139         char *name;
 2140         struct hostd *hp;
 2141         struct waitc *wp;
 2142  
 2143         if (upkstralloc(mp, &name)) {
 2144                 pvmlogerror("tm_mstat() bad msg format\n");
 2145                 return 0;
 2146         }
 2147  
 2148         hp = nametohost(hosts, name);
 2149  
 2150         PVM_FREE(name);
 2151  
 2152         if (!hp) {
true2153                 mp = replymessage(mp);
 2154                 pkint(mp, PvmNoHost);
mp <= 40952155                 sendmessage(mp);
Preconditions
&$unknown_1030579 >= 1
numpmsgs = 0
Postconditions
errno' != 0
ff' = 1
freepmsgs.m_link' = &freepmsgs.m_link
freepmsgs.m_rlink' = &freepmsgs.m_link
bytes_after(&$heap_334639)' = &$unknown_1030579
$heap_334639' is allocated by malloc
$heap_334639' is freed
bytes_before(&$heap_334639)' = 0
hp' = 0
hp' = 0
mp' = 0
mp' = 0
name' = &$heap_334639




Change Warning 310.28987 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: