Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at msgbox.c:266

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2584.2616
Procedure: mc_new
Trace: View
Modified: Wed Sep 2 12:41:42 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/msgbox.c
   Enter mc_new
 258 static struct pvmmclass * 
 259 mc_new(name) 
 260         char *name;
 261 {
 262         struct pvmmclass *np;
 263  
 264         if (np = TALLOC(1, struct pvmmclass, "pvmmclass")) {
 265                 if (name) {
true266                         np->mc_name = STRALLOC(name);     /* Null Pointer Dereference */
Preconditions
$param_1 != 0
Postconditions
bytes_after(&$heap_38168)' = 32
$heap_38168' is allocated by malloc
$heap_38168' is allocated
bytes_before(&$heap_38168)' = 0
name' = $param_1
np' = &$heap_38168




Change Warning 2584.2616 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: