Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Integer Overflow of Allocation Size  at pvmcruft.c:544

Categories: ALLOC.IOAS BSI:MALLOC-OVERFLOW CWE:680
Warning ID: 235.28872
Procedure: pvmcopyenv
Trace: view
Modified: Thu Nov 26 11:28:19 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/pvmcruft.c
   Enter pvmcopyenv
 535 char ** 
 536 pvmcopyenv(anyep) 
 537         char **anyep;           /* old environment to copy, or NULL */ 
 538 {
 539         char **newep;
 540         int i, n;
 541  
 542         if (anyep) {
 543                 for (n = 0; anyep[n]; n++) ;
true544                 if (newep = TALLOC(n + 1, char *, "env")) {     /* Integer Overflow of Allocation Size */
Preconditions
$input_12 = 0




Change Warning 235.28872 : Integer Overflow of Allocation Size

Priority:
State:
Finding:
Owner:
Note: