Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 520.29312
Procedure: job_new
Trace: view
Modified: Thu Nov 26 11:36:59 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 job_new
 125 struct job * 
 126 job_new(jid) 
 127         int jid;
 128 {
 129         struct job *jp = joblist->j_link;
 130         struct job *jp2;
 131         struct obuf *op;
 132  
 133         while (jp != joblist && jp->j_jid < jid)
 134                 jp = jp->j_link;
 135         if (jp->j_jid != jid) {
true136                 jp2 = TALLOC(1, struct job, "job");
jp2 <= 4095137                 BZERO((char*)jp2, sizeof(struct job));     /* Null Pointer Dereference */
Preconditions
((char*)*$unknown_12286911)[8] != jid
joblist->j_link->j_jid <= jid - 1
((char*)$unknown_12286911)[8] <= jid - 1
*$unknown_12286911 = joblist
joblist->j_link != joblist
Postconditions
errno' != 0
jp' = *$unknown_12286911
jp2' = 0




Change Warning 520.29312 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: