Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Integer Overflow of Allocation Size  at hoster.c:367

Categories: ALLOC.IOAS BSI:MALLOC-OVERFLOW CWE:680
Warning ID: 104.28706
Procedure: hoster
Trace: view
Modified: Thu Nov 26 11:27:30 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/hoster.c
   Enter hoster
 348 hoster(mp) 
 349         struct pmsg *mp;
 350 {
 351         struct pmsg *mp2;
 352         int num;
 353         int i;
 354         struct hst **hostlist;
 355         struct hst *hp;
 356         char *p;
 357  
 358         /*
 359         * unpack the startup message 
 360         */ 
 361  
 362         upkint(mp, &num);
 363         if (pvmdebmask & PDMSTARTUP) {
 364                 pvmlogprintf("hoster() %d to start\n", num);
 365         }
 366         if (num > 0) {
true367                 hostlist = TALLOC(num, struct hst *, "hsts");     /* Integer Overflow of Allocation Size */
Preconditions
&$unknown_273102 >= 1
$input_12 = 0
Postconditions
atnewline' = 1
errno' != 0
num' = &$unknown_273102
tmbuf.tm_sec' = &$unknown_273101




Change Warning 104.28706 : Integer Overflow of Allocation Size

Priority:
State:
Finding:
Owner:
Note: