News for hackers. Stuff that matters.
Re:Too Many Open Files by DougN7 on Saturday June 07, 2025 @06:00AM (#44208613)
Ok, I have to ask: the difference between “positive” and “non-negative” is …?
Re:Too Many Open Files by bregma on Saturday June 07, 2025 @07:52AM (#44209040)
The difference is a classic off-by-one error that can lead to a security exploit.
Re:Too Many Open Files by rkomorn on Saturday June 07, 2025 @06:10AM (#44208644)
0 is non-negative but also... non-positive?
Re:Too Many Open Files by cesarb on Saturday June 07, 2025 @09:55AM (#44209677)
The integer numbers can be divided into "negative" (less than zero), zero, and "positive" (greater than zero). When one says "non-negative", they are excluding only the negative numbers, so zero is included; when one says "positive", zero is not included.
Re:Too Many Open Files by magicalhippo on Saturday June 07, 2025 @10:14AM (#44209787)
Positive numbers are greater than zero[1], while non-negative numbers are greater or equal to zero.

[1]: https://en.wikipedia.org/wiki/List_of_types_of_numbers#Signe...