Text   |  XML   |  ReML   |   Visible Warnings:

Integer Overflow of Allocation Size  at lemon.c:532

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

acttab_insert

(/home/sate/Testcases/c/cve/wireshark-1.2.0/tools/lemon/lemon.c)expand/collapse
Show more  
 519  static int acttab_insert(acttab *p){
 520    int i, j, k, n;
 521    assert( p->nLookahead>0 );
 522   
 523    /* Make sure we have enough space to hold the expanded action table
 524    ** in the worst case.  The worst case occurs if the transaction set 
 525    ** must be appended to the current action table
 526    */
 527    n = p->mxLookahead + 1;
 528    if( p->nAction + n >= p->nActionAlloc ){
 529      int oldAlloc = p->nActionAlloc;
 530      p->nActionAlloc = p->nAction + n + p->nActionAlloc + 20;
 531      p->aAction = realloc( p->aAction,
 532                            sizeof(p->aAction[0])*p->nActionAlloc);
Show more  




Change Warning 877.29937 : Integer Overflow of Allocation Size

Priority:
State:
Finding:
Owner:
Note: