Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Null Pointer Dereference  at lpvmcat.c:256

Categories: LANG.MEM.NPD CWE:476
Warning ID: 362.29048
Procedure: tobuf_new
Trace: view
Modified: Thu Nov 26 11:30: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
   /kat0/fletcher/SATE/2010/pvm3/src/lpvmcat.c
   Enter tobuf_new
 245 static struct tobuf * 
 246 tobuf_new(tid) 
 247         int tid;
 248 {
 249         struct tobuf *op = tobuflist->o_link;
 250         struct tobuf *op2;
 251  
 252         while (op != tobuflist && op->o_tid < tid)
 253                 op = op->o_link;
 254         if (op->o_tid != tid) {
true255                 op2 = TALLOC(1, struct tobuf, "tobuf");
op2 <= 4095256                 BZERO((char*)op2, sizeof(struct tobuf));     /* Null Pointer Dereference */
Preconditions
((char*)*$unknown_2688075)[8] != tid
tobuflist->o_link->o_tid <= tid - 1
((char*)$unknown_2688075)[8] <= tid - 1
tobuflist->o_link != tobuflist
tobuflist = *$unknown_2688075
Postconditions
errno' != 0
op' = *$unknown_2688075
op2' = 0




Change Warning 362.29048 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: