Changeset 65d72f in git for libpolys


Ignore:
Timestamp:
Jul 27, 2015, 6:14:32 PM (9 years ago)
Author:
Andreas Steenpass <steenpass@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
6a52f15f9780f7af3a0ea06d03b4376f61136261
Parents:
4132ee2e5b539d15463dcf3db09fbf9aa7c00877
Message:
fix: prevent segfault in p_ChineseRemainder()

At this step, r might have been already freed by 'hh=p_LmFreeAndNext(hh,R);'
two lines further down. However, this error only occurs under very special
circumstances and is hard to reproduce.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/p_polys.cc

    r4132ee r65d72f  
    116116    {
    117117      hh=xx[j];
    118       if ((hh!=NULL) && (p_LmCmp(r,hh,R)==0))
     118      if ((hh!=NULL) && (p_LmCmp(h,hh,R)==0))
    119119      {
    120120        x[j]=pGetCoeff(hh);
Note: See TracChangeset for help on using the changeset viewer.