Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Free Null Pointer  at lpvmpack.c:1738

Categories: ALLOC.FNP CWE:590
Warning ID: 376.29073
Procedure: pvmupkstralloc
Trace: view
Modified: Thu Nov 26 11:30:59 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/lpvmpack.c
   Enter pvmupkstralloc
 1724 pvmupkstralloc(ss) 
 1725         char **ss;                              /* return pointer */ 
 1726 {
 1727         int cc;
 1728         int l;
 1729  
 1730         if (!pvmrbuf)
 1731                 cc = PvmNoBuf;
 1732         else {
 1733                 if (!(cc = (pvmrbuf->m_codef->dec_int)
 1734                                 (pvmrbuf, (void*)&l, 1, 1, sizeof(int)))) {
true1735                         *ss = TALLOC(l, char, "pustr");   /* Null Pointer Dereference (ID: 22132.29107) */  /* 3 more... */
 1736                         if ((cc = (pvmrbuf->m_codef->dec_byte)
 1737                                         (pvmrbuf, (void*)*ss, l, 1, 1)) < 0) {
*ss <= 40951738                                 PVM_FREE(*ss);     /* Free Null Pointer */
Preconditions
pvmrbuf != 0
Postconditions
cc' <= -1
errno' != 0
l' = &$unknown_2994080




Change Warning 376.29073 : Free Null Pointer

Priority:
State:
Finding:
Owner:
Note: