Changeset 9adaaf in git


Ignore:
Timestamp:
Nov 11, 2013, 1:38:41 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '48f1dd268d0ff74ef2f7dccbf02545425002ddcc')
Children:
1e2299a5214eed43664f50818501d6d4f9b1d57c
Parents:
1f400bfa5ac4fa62c171b3af71c6a7d693e2c025ff8e865862c1db7c644e9c6c2fdb70c073749e62
Message:
Merge pull request #421 from steenpass/rlimit_sw

fix: avoid int overflow in rlimit.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/rlimit.c

    r1f400b r9adaaf  
    3131  }
    3232  if ((nproc.rlim_max == RLIM_INFINITY || 2*nproc.rlim_cur <= nproc.rlim_max)
    33       && nproc.rlim_cur < 2*nproc.rlim_cur)
     33      && nproc.rlim_cur < 65536)
    3434  {
    3535    nproc.rlim_cur = 2*nproc.rlim_cur;
Note: See TracChangeset for help on using the changeset viewer.