diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-01-27 22:25:28 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2016-02-01 19:32:43 +0100 |
commit | 0a40d0191ae47b04bddeab9a08c3394b0b1b56bd (patch) | |
tree | d07ea9c15e606618483fc16210d75814042c8f84 /package/uclibc/0.9.33.2/0042-nice-fix-overflow-checking-in-int_add_no_wrap.patch | |
parent | 1a2225427522be13bf8287e2a4fcf4897884c0fc (diff) | |
download | buildroot-0a40d0191ae47b04bddeab9a08c3394b0b1b56bd.tar.gz buildroot-0a40d0191ae47b04bddeab9a08c3394b0b1b56bd.zip |
uclibc: remove 0.9.33 version
The upstream project is dead, the 0.9.33 version requires tons of
patches, and uclibc-ng has now successfully replaced uclibc. It is
time to get rid of the 0.9.33 version.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/uclibc/0.9.33.2/0042-nice-fix-overflow-checking-in-int_add_no_wrap.patch')
-rw-r--r-- | package/uclibc/0.9.33.2/0042-nice-fix-overflow-checking-in-int_add_no_wrap.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/package/uclibc/0.9.33.2/0042-nice-fix-overflow-checking-in-int_add_no_wrap.patch b/package/uclibc/0.9.33.2/0042-nice-fix-overflow-checking-in-int_add_no_wrap.patch deleted file mode 100644 index a6e6349cb8..0000000000 --- a/package/uclibc/0.9.33.2/0042-nice-fix-overflow-checking-in-int_add_no_wrap.patch +++ /dev/null @@ -1,44 +0,0 @@ -From e6735556ed0a5e791ea81a015a90c130a0eea060 Mon Sep 17 00:00:00 2001 -From: Xi Wang <xi@mit.edu> -Date: Wed, 20 Feb 2013 12:45:45 -0500 -Subject: [PATCH] nice: fix overflow checking in int_add_no_wrap() - -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@mit.edu> -Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> ---- - libc/sysdeps/linux/common/nice.c | 10 +++++----- - 1 file changed, 5 insertions(+), 5 deletions(-) - -diff --git a/libc/sysdeps/linux/common/nice.c b/libc/sysdeps/linux/common/nice.c -index 3694db8..ed39946 100644 ---- a/libc/sysdeps/linux/common/nice.c -+++ b/libc/sysdeps/linux/common/nice.c -@@ -25,15 +25,15 @@ static __inline__ _syscall1(int, __syscall_nice, int, incr) - - static __inline__ int int_add_no_wrap(int a, int b) - { -- int s = a + b; -- - if (b < 0) { -- if (s > a) s = INT_MIN; -+ if (a < INT_MIN - b) -+ return INT_MIN; - } else { -- if (s < a) s = INT_MAX; -+ if (a > INT_MAX - b) -+ return INT_MAX; - } - -- return s; -+ return a + b; - } - - static __inline__ int __syscall_nice(int incr) --- -1.7.10.4 - |