Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at host.c:420

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2730.2783
Procedure: nametohost
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  
true2143         if (upkstralloc(mp, &name)) {
 2144                 pvmlogerror("tm_mstat() bad msg format\n");
 2145                 return 0;
 2146         }
 2147  
name <= 40952148         hp = nametohost(hosts, name);
     /u1/paul/SATE/2010/c/pvm/pvm3/src/host.c
     Enter tm_mstat / nametohost
 412   struct hostd * 
$param_2 <= 4095413   nametohost(htp, name) 
 414           struct htab *htp;
 415           char *name;
 416   {
 417           int hh;
 418           struct hostd *hp;
 419    
name <= 4095420           if (!strcmp(name, "."))     /* Null Pointer Dereference */  /* Null Pointer Dereference (ID: 2571.2603) */
     Exit tm_mstat / nametohost
Preconditions
&$unknown_1077790 >= 1
Postconditions
htp' = hosts
mp' = $param_2
name' = 0
name' = 0
tp' = $param_1




Change Warning 2730.2783 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: