Changeset 5e1797 in git for kernel/kutil.cc


Ignore:
Timestamp:
Jan 26, 2012, 7:39:25 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
7453b439ec4021317ca8a5ccf6811c296e7708b0
Parents:
4fbc43cfe0d034a0bc31f3f17f00812926c1c4c1
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-01-26 19:39:25+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-01-27 14:21:40+01:00
Message:
fix the segfault occuring only on 64 bit

FIX: exitBuchMora tried to free strat->sevS as if it is an array of ints (i.e. not longs!)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kutil.cc

    r4fbc43 r5e1797  
    905905  memmove(&(strat->S[i]), &(strat->S[i+1]), (strat->sl - i)*sizeof(poly));
    906906  memmove(&(strat->ecartS[i]),&(strat->ecartS[i+1]),(strat->sl - i)*sizeof(int));
    907   memmove(&(strat->sevS[i]),&(strat->sevS[i+1]),(strat->sl - i)*sizeof(long));
     907  memmove(&(strat->sevS[i]),&(strat->sevS[i+1]),(strat->sl - i)*sizeof(unsigned long));
    908908  memmove(&(strat->S_2_R[i]),&(strat->S_2_R[i+1]),(strat->sl - i)*sizeof(int));
    909909#else
     
    59765976  omFreeSize(strat->sevT, (strat->tmax)*sizeof(unsigned long));
    59775977  omFreeSize(strat->ecartS,IDELEMS(strat->Shdl)*sizeof(int));
    5978   omFreeSize(strat->sevS,IDELEMS(strat->Shdl)*sizeof(int));
     5978  omFreeSize((ADDRESS)strat->sevS,IDELEMS(strat->Shdl)*sizeof(unsigned long));
    59795979  omFreeSize(strat->S_2_R,IDELEMS(strat->Shdl)*sizeof(int));
    59805980  /*- set L: should be empty -*/
Note: See TracChangeset for help on using the changeset viewer.