Changeset ff8e86 in git


Ignore:
Timestamp:
Nov 8, 2013, 6:00:29 PM (9 years ago)
Author:
Andreas Steenpass <steenpass@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'c987db42cd2ec943b97ac5746c99892ceddf909c')
Children:
9adaafd4079eb433b20e12f6fa003e2399d8b46b
Parents:
1f400bfa5ac4fa62c171b3af71c6a7d693e2c025
git-author:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2013-11-08 18:00:29+01:00
git-committer:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2013-11-11 13:01:15+01:00
Message:
fix: avoid int overflow in rlimit.c
(cherry picked from commit 6ace3051babf6d4083ff3aabc1f7e6885356e220)

Signed-off-by: Andreas Steenpass <steenpass@mathematik.uni-kl.de>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/rlimit.c

    r1f400b rff8e86  
    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.