Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at task.c:321

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2475.2503
Procedure: task_init
Trace: View
Modified: Wed Sep 2 12:39:45 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/task.c
   Enter task_init
 310 task_init() 
 311 {
 312         if (!locltasks) {
 313                 locltasks = TALLOC(1, struct task, "task");
 314                 BZERO((char*)locltasks, sizeof(struct task));   /* Null Pointer Dereference (ID: 2476.2504) */
 315                 locltasks->t_link = locltasks;
 316                 locltasks->t_rlink = locltasks;
 317                 locltasks->t_plink = locltasks;
 318                 locltasks->t_prlink = locltasks;
 319  
true320                 cconlist = TALLOC(1, struct ccon, "ccon");
cconlist <= 4095321                 BZERO((char*)cconlist, sizeof(struct ccon));     /* Null Pointer Dereference */
Preconditions
locltasks = 0
Postconditions
cconlist' = 0
$heap_3662' = &$heap_3662
bytes_after(&$heap_3662)' = 224
$heap_3662' is allocated by malloc
$heap_3662' is allocated
bytes_before(&$heap_3662)' = 0
strlen(&$heap_3662)' = 0
((char*)&$heap_3662)[16]' = &$heap_3662
((char*)&$heap_3662)[24]' = &$heap_3662
((char*)&$heap_3662)[8]' = &$heap_3662
locltasks' = &$heap_3662




Change Warning 2475.2503 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: