svn commit: r278634 - head/lib/libc/gen

Pedro Giffuni pfg at FreeBSD.org
Thu Feb 12 22:41:12 UTC 2015


On 02/12/15 17:27, Bjoern A. Zeeb wrote:
>> On 12 Feb 2015, at 21:07 , Pedro F. Giffuni <pfg at FreeBSD.org> wrote:
>>
>> Author: pfg
>> Date: Thu Feb 12 21:07:42 2015
>> New Revision: 278634
>> URL: https://svnweb.freebsd.org/changeset/base/278634
>>
>> Log:
>>   ulimit(3): Fix broken check.
>>
>>   The existing implementation had a broken comparison that could overflow.
>>   Replace this with a check that avoids the overflow before it happens.
>>
>>   Consistently return a maximum value also on the case of negative
>>   arguments since negative is considered an overflow and means
>>   infinity for our current setrlimit().
>>
>>   Discussed with:	bde (rather extensively)
>>
> Did this compile?
>

Yes! Any log message to share?

Pedro.



More information about the svn-src-all mailing list