Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Null Pointer Dereference  at job.c:215

Categories: LANG.MEM.NPD CWE:476
Warning ID: 486.29260
Procedure: obuf_new
Trace: view
Modified: Thu Nov 26 11:36:29 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/console/job.c
   Enter obuf_new
 203 struct obuf * 
 204 obuf_new(jp, tid) 
 205         struct job *jp;
 206         int tid;
 207 {
 208         struct obuf *op = jp->j_obufs->o_link;
 209         struct obuf *op2;
 210  
 211         while (op != jp->j_obufs && op->o_tid < tid)
 212                 op = op->o_link;
 213         if (op->o_tid != tid) {
true214                 op2 = TALLOC(1, struct obuf, "obuf");
op2 <= 4095215                 BZERO((char*)op2, sizeof(struct obuf));     /* Null Pointer Dereference */
Preconditions
jp->j_obufs->o_link->o_tid <= tid - 1
((char*)*$unknown_12101436)[8] != tid
((char*)$unknown_12101436)[8] <= tid - 1
jp->j_obufs->o_link != jp->j_obufs
*$unknown_12101436 = jp->j_obufs
Postconditions
errno' != 0
op' = *$unknown_12101436
op2' = 0




Change Warning 486.29260 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: