Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Free Null Pointer  at tdpro.c:999

Categories: LANG.ALLOC.FNP CWE:590
Warning ID: 2705.2758
Procedure: tm_addhost
Trace: View
Modified: Wed Sep 2 12:44:04 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_addhost
 981 tm_addhost(tp, mp) 
 982         struct task *tp;
 983         struct pmsg *mp;
 984 {
 985         int count;
 986         char *buf;
 987         struct waitc *wp;
 988  
 989         /* sanity check the message */ 
 990  
 991         if (upkint(mp, &count))
 992                 goto bad;
 993         if (count < 1 || count > (tidhmask >> (ffs(tidhmask) - 1)))
 994                 goto bad;
 995         while (count-- > 0) {
true996                 if (upkstralloc(mp, &buf))
 997                         goto bad;
 998                 else 
buf <= 4095999                         PVM_FREE(buf);     /* Free Null Pointer */
Preconditions
&$unknown_968097 >= 2
Postconditions
buf' = 0
count' = &$unknown_968097 - 2
mp' = $param_2
tp' = $param_1




Change Warning 2705.2758 : Free Null Pointer

Priority:
State:
Finding:
Owner:
Note: