Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Null Pointer Dereference  at host.c:420

Categories: LANG.MEM.NPD CWE:476
Warning ID: 311.28988
Procedure: nametohost
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  
true2143         if (upkstralloc(mp, &name)) {
 2144                 pvmlogerror("tm_mstat() bad msg format\n");
 2145                 return 0;
 2146         }
 2147  
name <= 40952148         hp = nametohost(hosts, name);
     /kat0/fletcher/SATE/2010/pvm3/src/host.c
     Enter tm_mstat / nametohost
 412   struct hostd * 
 413   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: 154.28776) */
     Exit tm_mstat / nametohost
Preconditions
&$unknown_1030624 >= 1
Postconditions
errno' != 0
htp' = hosts
name' = 0
name' = 0




Change Warning 311.28988 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: