Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at pvmd.c:3715

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2729.2782
Procedure: sendmessage
Trace: View
Modified: Wed Sep 2 12:44:28 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/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_1077566 >= 1
&$unknown_1077567 = 0
numpmsgs = 0
Postconditions
ff' = 1
freepmsgs.m_link' = &freepmsgs.m_link
freepmsgs.m_rlink' = &freepmsgs.m_link
bytes_after(&$heap_162291)' = &$unknown_1077566
$heap_162291' is allocated by malloc
$heap_162291' is freed
bytes_before(&$heap_162291)' = 0
hp' = 0
hp' = 0
mp' = 0
mp' = 0
name' = &$heap_162291
tp' = $param_1




Change Warning 2729.2782 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: