Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at cons.c:368

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2910.2982
Procedure: main
Trace: View
Modified: Wed Sep 2 12:52:33 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/console/cons.c
   Enter main
 290 main(argc, argv) 
 291         int argc;
 292         char **argv;
 293 {
 294         static struct timeval more_msgs = { 0, 0 };
 295         char cmd[1024];
 296         int cc;
 297         int i;
 298         int src, cod, len;
 299         char *p;
 300         FILE *ff;
 301 #ifdef FDSETNOTSTRUCT 
 302         fd_set rfds, fds;
 303 #else 
 304         struct fd_set rfds, fds; 
 305 #endif 
 306         int nfds;
 307         int n;
 308         int *np = 0;
 309         struct pvmminfo minfo;
 310         struct timeval *timeout;
 311         int more;
 312         int ac;
 313         char *av[128];
 314  
 315 #ifdef WIN32 
 316  
 317         /* WSAStartup has to be called before any socket command */ 
 318         /* can be executed. Why ? Ask Bill */ 
   ...
 355                         fprintf(stderr,  
 356                                 "SET CYGWIN=tty   (Cygwin B20)\n");
 357                         fprintf(stderr,  
 358                                 "SET CYGWIN32=tty (Cygwin B19)\n");
 359                         exit(1);
 360                 }
 361         }               
 362  
 363 #endif 
 364  
 365         pvm_setopt(PvmResvTids, 1);
 366  
true367         aliases = TALLOC(1, struct alias, "alias");
aliases <= 4095368         BZERO((char*)aliases, sizeof(struct alias));     /* Null Pointer Dereference */
Postconditions
*stderr' is allocated by fopen
bytes_before(stderr)' = 0
aliases' = 0
argc' = $param_1
argv' = $param_2
np' = 0




Change Warning 2910.2982 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: