Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Integer Overflow of Allocation Size  at pvmd.c:5181

Categories: ALLOC.IOAS BSI:MALLOC-OVERFLOW CWE:680
Warning ID: 140.28761
Procedure: colonsep
Trace: view
Modified: Thu Nov 26 11:27:45 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/pvmd.c
   Enter colonsep
 5167 char ** 
 5168 colonsep(s) 
 5169         char *s;        /* the string to break up */ 
 5170 {
 5171         char **els;
 5172         int nel = 2;                    /* length of els */ 
 5173         char *p, *q;
 5174  
 5175 #if defined (IMA_OS2) || defined (WIN32) 
 5176         for (p = s; p = CINDEX(p, ';'); p++) 
 5177 #else 
 5178         for (p = s; p = CINDEX(p, ':'); p++)
 5179 #endif 
 5180                 nel++;
true5181         els = TALLOC(nel, char*, "path");     /* Integer Overflow of Allocation Size */
Preconditions
$input_12 = 0
Postconditions
p' = 0




Change Warning 140.28761 : Integer Overflow of Allocation Size

Priority:
State:
Finding:
Owner:
Note: