Changeset ebf6a6 in git


Ignore:
Timestamp:
Jul 6, 2009, 1:54:10 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
e6d2f67d59d8d9127eab2943d2bf0c78e249d180
Parents:
3a0e1a78889f30ca1c8f7bad0c13eda46d838010
Message:
*hannes: malloc overflow


git-svn-id: file:///usr/local/Singular/svn/trunk@11947 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/hilb.cc

    r3a0e1a rebf6a6  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: hilb.cc,v 1.3 2006-09-20 16:47:14 Singular Exp $ */
     4/* $Id: hilb.cc,v 1.4 2009-07-06 11:54:10 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Hilbert series
     
    5252    if (z > Ql[j])
    5353    {
    54       p = (int *)omAlloc(z * sizeof(int));
     54      if (z>(INT_MAX)/2)
     55      {
     56       Werror("interal arrays too big");
     57       return;
     58      }
     59      p = (int *)omAlloc((unsigned long)z * sizeof(int));
    5560      if (Ql[j]!=0)
    5661      {
Note: See TracChangeset for help on using the changeset viewer.