[PATCH] nice: fix overflow checking in int_add_no_wrap()

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Feb 20 18:25:42 UTC 2013


On 20 February 2013 18:45, Xi Wang <xi at mit.edu> wrote:
> In C, signed integer overflow is undefined behavior.  Many compilers
> optimize away checks like `a + b < a'.
>
> Use safe precondition testing instead.
>
> Signed-off-by: Xi Wang <xi at mit.edu>

Applied, thanks!


More information about the uClibc mailing list