Text   |  XML   |  ReML   |   Visible Warnings:

Integer Overflow of Allocation Size  at lemon.c:4863

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

Configtable_insert

(/home/sate/Testcases/c/cve/wireshark-1.2.0/tools/lemon/lemon.c)expand/collapse
Show more  
 4838  int Configtable_insert(struct config *data)
 4839  {
 4840    x4node *np;
 4841    int h;
 4842    int ph;
 4843   
 4844    if( x4a==0 ) return 0;
 4845    ph = confighash(data);
 4846    h = ph & (x4a->size-1);
 4847    np = x4a->ht[h];
 4848    while( np ){
 4849      if( Configcmp(np->data,data)==0 ){
 4850        /* An existing entry with the same key is found. */
 4851        /* Fail because overwrite is not allows. */
 4852        return 0;
 4853      }
 4854      np = np->next;
 4855    }
 4856    if( x4a->count>=x4a->size ){
 4857      /* Need to make the hash table bigger */
 4858      int i,size;
 4859      struct s_x4 array;
 4860      array.size = size = x4a->size*2;
 4861      array.count = x4a->count;
 4862      array.tbl = (x4node*)malloc(
 4863        (sizeof(x4node) + sizeof(x4node*))*size );
Show more  




Change Warning 878.29740 : Integer Overflow of Allocation Size

Priority:
State:
Finding:
Owner:
Note: