Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at waitc.c:214

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2688.2740
Procedure: wait_init
Trace: View
Modified: Wed Sep 2 12:43:24 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/waitc.c
   Enter wait_init
 206 wait_init(base, range) 
 207         int base;                       /* base value for wait context ids */ 
 208         int range;                      /* mask for id generation */ 
 209 {
 210         if (!waitlist) {
 211                 widbase = base;
 212                 widrange = range;
true213                 waitlist = TALLOC(1, struct waitc, "wait");
waitlist <= 4095214                 BZERO((char*)waitlist, sizeof(struct waitc));     /* Null Pointer Dereference */
Preconditions
waitlist = 0
Postconditions
base' = $param_1
range' = $param_2
waitlist' = 0
widbase' = $param_1
widrange' = $param_2




Change Warning 2688.2740 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: