Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Null Pointer Dereference  at ddpro.c:2833

Categories: LANG.MEM.NPD CWE:476
Warning ID: 163.28785
Procedure: dm_mca
Trace: view
Modified: Thu Nov 26 11:27:55 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/ddpro.c
   Enter dm_mca
 2821 dm_mca(hp, mp) 
 2822         struct hostd *hp;
 2823         struct pmsg *mp;
 2824 {
 2825         struct mca *mcap;
 2826         int i;
 2827  
 2828         /* unpack struct mca from message */ 
 2829  
true2830         mcap = mca_new();
 2831         upkuint(mp, &mcap->mc_tid);
 2832         upkint(mp, &mcap->mc_ndst);
mcap <= 40952833         mcap->mc_dsts = TALLOC(mcap->mc_ndst, int, "mcad");     /* Null Pointer Dereference */  /* Integer Overflow of Allocation Size (ID: 162.28784) */
Postconditions
errno' != 0
mcap' = 0




Change Warning 163.28785 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: