Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at tdpro.c:1879

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2724.2777
Procedure: tm_mca
Trace: View
Modified: Wed Sep 2 12:44:26 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/tdpro.c
   Enter tm_mca
 1863 tm_mca(tp, mp) 
 1864         struct task *tp;
 1865         struct pmsg *mp;
 1866 {
 1867         struct mca *mcap;                       /* mca descriptor */ 
 1868         int ndst;                                       /* num of dst tids */ 
 1869         int *dsts;                                      /* dst tids */ 
 1870         int tid;
 1871         int i, j;
 1872  
 1873         /*
 1874         * unpack list of dst tids from message (expect it to be sorted).
 1875         * discard tids to nonexistent foreign hosts.
 1876         */ 
 1877  
true1878         mcap = mca_new();
mcap <= 40951879         mcap->mc_tid = TIDGID | tp->t_tid;     /* Null Pointer Dereference */
Postconditions
mcap' = 0
mp' = $param_2
tp' = $param_1




Change Warning 2724.2777 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: