Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Free Null Pointer  at lpvmpack.c:1738

Categories: LANG.ALLOC.FNP CWE:590
Warning ID: 2792.2851
Procedure: pvmupkstralloc
Trace: View
Modified: Wed Sep 2 12:46:58 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/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: 2818.2878) */  /* 2 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
&$unknown_1773756 >= 0
pvmrbuf != 0
Postconditions
cc' <= -1
l' = &$unknown_1773756
ss' = $param_1




Change Warning 2792.2851 : Free Null Pointer

Priority:
State:
Finding:
Owner:
Note: