Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at lpvm.c:2728

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2798.2858
Procedure: pvmmcast
Trace: View
Modified: Wed Sep 2 12:47:15 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/lpvm.c
   Enter pvmmcast
 2704 pvmmcast(mid, tids, count, tag) 
 2705         int mid;        
 2706         int *tids;
 2707         int count;
 2708         int tag;
 2709 {
 2710         static struct timeval ztv = { 0, 0 };
 2711  
 2712         int *dst;
 2713         int i, j;
 2714         int cc = 0;
 2715         struct ttpcb *pcbp;
 2716         int sbf;
 2717  
 2718         /*
 2719         * make sorted list of destinations 
 2720         */ 
true2721         dst = TALLOC(count, int, "mcal");
 2722         BCOPY(tids, dst, count * sizeof(int));   /* Null Pointer Dereference (ID: 2799.2859) */  /* Null Pointer Dereference (ID: 2805.2865) */
 2723  
 2724         qsort( 
 2725                 (void *)dst,  
 2726                 (size_t)count,  
 2727                 sizeof(int),
dst <= 40952728                 int_compare);     /* Null Pointer Dereference */
Preconditions
$param_3 = 0
&$unknown_1869642 = 4
&$unknown_1869643 = 4
&$unknown_1869644 = 4
&$unknown_1869645 = 4
Postconditions
cc' = 0
count' = $param_3
dst' = 0
mid' = $param_1
tag' = $param_4
tids' = $param_2




Change Warning 2798.2858 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: