Changeset 703b5a3 in git


Ignore:
Timestamp:
Feb 5, 2002, 2:09:22 PM (22 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
816fb200cf9ea3e46a9fe17b49e7a95c7189a48f
Parents:
28e0ac8cfc405def682d3274f90c18f7d6cc46f5
Message:
*hannes: fixed NULL deref


git-svn-id: file:///usr/local/Singular/svn/trunk@5840 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/fast_maps.cc

    r28e0ac8 r703b5a3  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 02/01
    9  *  Version: $Id: fast_maps.cc,v 1.28 2002-01-20 11:44:48 Singular Exp $
     9 *  Version: $Id: fast_maps.cc,v 1.29 2002-02-05 13:09:05 Singular Exp $
    1010 *******************************************************************/
    1111#include "mod2.h"
     
    322322  for (int i= 0; i < m_id->n; i++)
    323323  {
    324     sBucketDestroyAdd(m_id->buckets[i], &(res->m[i]), &l);
     324    if (m_id->buckets[i]!=NULL)
     325      sBucketDestroyAdd(m_id->buckets[i], &(res->m[i]), &l);
    325326  }
    326327  omFree(m_id);
     
    375376  // do the optimization step
    376377#if HAVE_MAP_OPTIMIZE > 0
    377   maPoly_Optimize(mp, src_r);
     378  if (mp!=NULL) maPoly_Optimize(mp, src_r);
    378379#endif
    379380  if (TEST_OPT_PROT)
     
    395396  if (dest_r != image_r)
    396397  {
    397     if (no_sort)
    398       res_image_id = idrShallowCopyR_NoSort(res_dest_id, dest_r, image_r);
    399     else
     398    //if (no_sort) see Old/m134si.tst
     399    //  res_image_id = idrShallowCopyR_NoSort(res_dest_id, dest_r, image_r);
     400    //else
    400401      res_image_id = idrShallowCopyR(res_dest_id, dest_r, image_r);
    401402    id_ShallowDelete(&res_dest_id, dest_r);
  • Singular/ipid.cc

    r28e0ac8 r703b5a3  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipid.cc,v 1.59 2002-02-04 12:06:53 Singular Exp $ */
     4/* $Id: ipid.cc,v 1.60 2002-02-05 13:09:22 Singular Exp $ */
    55
    66/*
     
    494494      while ((s!=h) && (s!=NULL)) s=s->next;
    495495      if (s==NULL) killhdl2(h,&(currRing->idroot),currRing);
    496       else killhdl2(h,&IDROOT,NULL);
     496      else killhdl2(h,&IDROOT,currRing);
    497497    }
    498498#endif /* HAVE_NAMESPACES */
Note: See TracChangeset for help on using the changeset viewer.