diff options
author | Steven Barth <cyrus@openwrt.org> | 2015-07-24 13:51:45 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2015-07-24 13:51:45 +0000 |
commit | bee26ca0de90d4b1895cb53982632f3ecb9ff362 (patch) | |
tree | db63be5dec0b2f1c70b470c6222224d9fe16941e /toolchain/fortify-headers/patches/100-fix-getgroups.patch | |
parent | fefb6758f9d783af946d935fce3ea38d7610d8fa (diff) | |
download | mtk-20170518-bee26ca0de90d4b1895cb53982632f3ecb9ff362.zip mtk-20170518-bee26ca0de90d4b1895cb53982632f3ecb9ff362.tar.gz mtk-20170518-bee26ca0de90d4b1895cb53982632f3ecb9ff362.tar.bz2 |
fortify-headers: update to 0.7
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46480
Diffstat (limited to 'toolchain/fortify-headers/patches/100-fix-getgroups.patch')
-rw-r--r-- | toolchain/fortify-headers/patches/100-fix-getgroups.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/toolchain/fortify-headers/patches/100-fix-getgroups.patch b/toolchain/fortify-headers/patches/100-fix-getgroups.patch deleted file mode 100644 index 988deb5..0000000 --- a/toolchain/fortify-headers/patches/100-fix-getgroups.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 1f9848efc8a329cb9a13323cbb94b353d39802c1 Mon Sep 17 00:00:00 2001 -From: Steven Barth <steven@midlink.org> -Date: Mon, 22 Jun 2015 14:36:16 +0200 -Subject: [PATCH] unistd: fix signed / unsigned comparison in getgroups - -Signed-off-by: Steven Barth <steven@midlink.org> ---- - include/unistd.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/include/unistd.h b/include/unistd.h -index 45304e1..5274e22 100644 ---- a/include/unistd.h -+++ b/include/unistd.h -@@ -71,7 +71,7 @@ _FORTIFY_FN(getgroups) int getgroups(int __l, gid_t *__s) - { - size_t __b = __builtin_object_size(__s, 0); - -- if (__l > __b / sizeof(gid_t)) -+ if (__l < 0 || (size_t)__l > __b / sizeof(gid_t)) - __builtin_trap(); - return __orig_getgroups(__l, __s); - } --- -2.1.4 - |