Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Free Null Pointer  at pvmdpack.c:287

Categories: LANG.ALLOC.FNP CWE:590
Warning ID: 2451.2479
Procedure: upkstralloc
Trace: View
Modified: Wed Sep 2 12:39:36 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/pvmdpack.c
   Enter upkstralloc
 274 upkstralloc(mp, ss) 
 275         struct pmsg *mp;                /* message to unpack */ 
 276         char **ss;                              /* return pointer */ 
 277 {
 278         int cc;
 279         int l;
 280  
 281         if (!(cc = (mp->m_codef->dec_int) (mp, (void*)&l, 1, 1, sizeof(int)))) {
 282                 if (l <= 0)
 283                         cc = PvmNoData;
 284                 else {
true285                         *ss = TALLOC(l, char, "ustr");   /* Null Pointer Dereference (ID: 2540.2571) */
 286                         if ((cc = (mp->m_codef->dec_byte) (mp, (void*)*ss, l, 1, 1)) < 0) {
*ss <= 4095287                                 PVM_FREE(*ss);     /* Free Null Pointer */
Preconditions
&$unknown_74459 >= 1
Postconditions
cc' <= -1
l' = &$unknown_74459
mp' = $param_1
ss' = $param_2




Change Warning 2451.2479 : Free Null Pointer

Priority:
State:
Finding:
Owner:
Note: