Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at cmds.c:493

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2912.2985
Similar Warnings: 2912.2984
Procedure: newalias
Trace: View
Modified: Wed Sep 2 12:52:35 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/cmds.c
   Enter newalias
 484 struct alias * 
 485 newalias(name, num, args) 
 486         char *name;
 487         int num;
 488         char **args;
 489 {
 490         struct alias *ap, *ap2;
 491  
 492         ap = TALLOC(1, struct alias, "alias");
true493         ap->a_name = STRALLOC(name);     /* Null Pointer Dereference */
Postconditions
ap' = 0
args' = $param_3
name' = $param_1
num' = $param_2




Change Warning 2912.2985 : Null Pointer Dereference

Because they are very similar, this warning shares annotations with warning 2912.2984.
CodeSonar has selected warning 2912.2984 to represent this group of similar warnings. In order to edit this group, you must edit warning 2912.2984.