aboutsummaryrefslogtreecommitdiffstats
path: root/main/musl/0006-fix-off-by-one-array-bound-in-strsignal.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-07-11 05:38:46 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-07-11 05:44:44 +0000
commitf00ea22784d28a92b14dd5b570eda217c7d9a462 (patch)
treec1b263dea6b951efe35c46424083a41b4e9420cc /main/musl/0006-fix-off-by-one-array-bound-in-strsignal.patch
parentdc3ff4b277d5a9ae36771ac635f8d43eb0cbfb59 (diff)
downloadaports-f00ea22784d28a92b14dd5b570eda217c7d9a462.tar.bz2
aports-f00ea22784d28a92b14dd5b570eda217c7d9a462.tar.xz
main/musl: various fixes from git master, and packaging fixes
- use upstream commits for all arm pie/unwind fixes - replace getopt with BSD licensed GNU compatible getopt - set proper SONAME for the libc generated for packaging purposes - rename libc.so to be ld-musl-$ARCH.so.1 and point the SONAME and ldd links to it. this allows libc.so to go to -dev package as it will be used for compiling only. - move specs file to musl-crosstool subpackage
Diffstat (limited to 'main/musl/0006-fix-off-by-one-array-bound-in-strsignal.patch')
-rw-r--r--main/musl/0006-fix-off-by-one-array-bound-in-strsignal.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/musl/0006-fix-off-by-one-array-bound-in-strsignal.patch b/main/musl/0006-fix-off-by-one-array-bound-in-strsignal.patch
new file mode 100644
index 0000000000..e349d3b29b
--- /dev/null
+++ b/main/musl/0006-fix-off-by-one-array-bound-in-strsignal.patch
@@ -0,0 +1,25 @@
+From 9134a8ca79fa9c79eada278b10f4d6b1eaf271d3 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Tue, 9 Jul 2013 02:11:52 -0400
+Subject: [PATCH 6/9] fix off-by-one array bound in strsignal
+
+---
+ src/string/strsignal.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/string/strsignal.c b/src/string/strsignal.c
+index 3b0ae6d..d70982a 100644
+--- a/src/string/strsignal.c
++++ b/src/string/strsignal.c
+@@ -48,7 +48,7 @@ static const char map[] = {
+ [SIGSYS] = 31
+ };
+
+-#define sigmap(x) ((unsigned)(x) > sizeof map ? 0 : map[(unsigned)(x)])
++#define sigmap(x) ((unsigned)(x) >= sizeof map ? 0 : map[(unsigned)(x)])
+
+ #endif
+
+--
+1.8.3.2
+