Christian Wiese
14 years ago
11 changed files with 7625 additions and 76 deletions
@ -1,52 +0,0 @@
|
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31-dnslookup-use-after-free.patch
|
||||
# Copyright (C) 2010 The OpenSDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
||||
# This patch file is dual-licensed. It is available under the license the
|
||||
# patched project is licensed under, as long as it is an OpenSource license
|
||||
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||||
# of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
# --- SDE-COPYRIGHT-NOTE-END ---
|
||||
|
||||
From eb1d8c8289f466ba3ad10b9a88ab2e426b8a9dc7 Mon Sep 17 00:00:00 2001
|
||||
From: Gabor Juhos <juhosg@openwrt.org>
|
||||
Date: Tue, 6 Apr 2010 09:55:19 +0200
|
||||
Subject: [PATCH] Fix use-after-free bug in __dns_lookup
|
||||
|
||||
If the type of the first answer does not match with the requested type,
|
||||
then the dotted name was freed. If there are no further answers in
|
||||
the DNS reply, this pointer was used later on in the same function.
|
||||
Additionally it is passed to the caller, and caused strange
|
||||
behaviour.
|
||||
|
||||
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
---
|
||||
libc/inet/resolv.c | 4 +---
|
||||
1 files changed, 1 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
|
||||
index 056539f..9459199 100644
|
||||
--- a/libc/inet/resolv.c
|
||||
+++ b/libc/inet/resolv.c
|
||||
@@ -1517,10 +1517,8 @@ int attribute_hidden __dns_lookup(const char *name,
|
||||
memcpy(a, &ma, sizeof(ma));
|
||||
if (a->atype != T_SIG && (NULL == a->buf || (type != T_A && type != T_AAAA)))
|
||||
break;
|
||||
- if (a->atype != type) {
|
||||
- free(a->dotted);
|
||||
+ if (a->atype != type)
|
||||
continue;
|
||||
- }
|
||||
a->add_count = h.ancount - j - 1;
|
||||
if ((a->rdlength + sizeof(struct in_addr*)) * a->add_count > a->buflen)
|
||||
break;
|
||||
--
|
||||
1.7.0
|
||||
|
@ -1,7 +1,7 @@
|
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31-add-inotify-init1.patch
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31.1-add-inotify-init1.patch
|
||||
# Copyright (C) 2011 The OpenSDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
@ -1,8 +1,8 @@
|
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31-fix-error-locale-utf-8.patch
|
||||
# Copyright (C) 2010 The OpenSDE Project
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31.1-fix-error-locale-utf-8.patch
|
||||
# Copyright (C) 2011 The OpenSDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
@ -1,8 +1,8 @@
|
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31-fix-fcntl64-for-64-bit-targets.patch
|
||||
# Copyright (C) 2010 The OpenSDE Project
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31.1-fix-fcntl64-for-64-bit-targets.patch
|
||||
# Copyright (C) 2011 The OpenSDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
@ -0,0 +1,114 @@
|
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31.1-linuxthreads-errno-fix.patch
|
||||
# Copyright (C) 2011 The OpenSDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
||||
# This patch file is dual-licensed. It is available under the license the
|
||||
# patched project is licensed under, as long as it is an OpenSource license
|
||||
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||||
# of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
# --- SDE-COPYRIGHT-NOTE-END ---
|
||||
|
||||
From af8b2d71ce37b9d4d24ddbc755cdea68de02949a Mon Sep 17 00:00:00 2001
|
||||
From: Peter Korsgaard <jacmet@sunsite.dk>
|
||||
Date: Mon, 5 Jul 2010 14:08:17 +0200
|
||||
Subject: [PATCH] don't make __errno_location / __h_errno_location hidden
|
||||
|
||||
Closes #2089 (https://bugs.busybox.net/show_bug.cgi?id=2089)
|
||||
|
||||
__errno_location / __h_errno_location access has to go through the PLT
|
||||
like malloc/free, so the linuxthread variants gets used instead when
|
||||
compiling with -pthread.
|
||||
|
||||
Based on http://github.com/mat-c/uClibc/commit/328d392c54aa5dc2b8e7f398a419087de497de2b
|
||||
|
||||
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
||||
---
|
||||
include/netdb.h | 1 -
|
||||
libc/misc/internals/__errno_location.c | 3 ---
|
||||
libc/misc/internals/__h_errno_location.c | 1 -
|
||||
libc/misc/internals/__uClibc_main.c | 2 --
|
||||
libc/sysdeps/linux/common/bits/errno.h | 1 -
|
||||
libc/sysdeps/linux/common/bits/uClibc_errno.h | 3 ---
|
||||
6 files changed, 0 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/include/netdb.h b/include/netdb.h
|
||||
index 9d3807d..ac411ab 100644
|
||||
--- a/include/netdb.h
|
||||
+++ b/include/netdb.h
|
||||
@@ -59,7 +59,6 @@ __BEGIN_DECLS
|
||||
|
||||
/* Function to get address of global `h_errno' variable. */
|
||||
extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
|
||||
-libc_hidden_proto(__h_errno_location)
|
||||
|
||||
/* Macros for accessing h_errno from inside libc. */
|
||||
#ifdef _LIBC
|
||||
diff --git a/libc/misc/internals/__errno_location.c b/libc/misc/internals/__errno_location.c
|
||||
index 487a9c2..0620860 100644
|
||||
--- a/libc/misc/internals/__errno_location.c
|
||||
+++ b/libc/misc/internals/__errno_location.c
|
||||
@@ -11,6 +11,3 @@ int * weak_const_function __errno_location (void)
|
||||
{
|
||||
return &errno;
|
||||
}
|
||||
-#ifdef IS_IN_libc /* not really need, only to keep in sync w/ libc_hidden_proto */
|
||||
-libc_hidden_weak(__errno_location)
|
||||
-#endif
|
||||
diff --git a/libc/misc/internals/__h_errno_location.c b/libc/misc/internals/__h_errno_location.c
|
||||
index 213d398..235df4e 100644
|
||||
--- a/libc/misc/internals/__h_errno_location.c
|
||||
+++ b/libc/misc/internals/__h_errno_location.c
|
||||
@@ -10,4 +10,3 @@ int * weak_const_function __h_errno_location (void)
|
||||
{
|
||||
return &h_errno;
|
||||
}
|
||||
-libc_hidden_weak(__h_errno_location)
|
||||
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
|
||||
index 6e520fa..f4a9ebb 100644
|
||||
--- a/libc/misc/internals/__uClibc_main.c
|
||||
+++ b/libc/misc/internals/__uClibc_main.c
|
||||
@@ -64,9 +64,7 @@ void internal_function _dl_aux_init (ElfW(auxv_t) *av);
|
||||
* Prototypes.
|
||||
*/
|
||||
extern int *weak_const_function __errno_location(void);
|
||||
-libc_hidden_proto(__errno_location)
|
||||
extern int *weak_const_function __h_errno_location(void);
|
||||
-libc_hidden_proto(__h_errno_location)
|
||||
|
||||
extern void weak_function _stdio_init(void) attribute_hidden;
|
||||
#ifdef __UCLIBC_HAS_LOCALE__
|
||||
diff --git a/libc/sysdeps/linux/common/bits/errno.h b/libc/sysdeps/linux/common/bits/errno.h
|
||||
index 0bf6354..de9688a 100644
|
||||
--- a/libc/sysdeps/linux/common/bits/errno.h
|
||||
+++ b/libc/sysdeps/linux/common/bits/errno.h
|
||||
@@ -43,7 +43,6 @@
|
||||
# ifndef __ASSEMBLER__
|
||||
/* Function to get address of global `errno' variable. */
|
||||
extern int *__errno_location (void) __THROW __attribute__ ((__const__));
|
||||
-libc_hidden_proto(__errno_location)
|
||||
|
||||
# ifdef __UCLIBC_HAS_THREADS__
|
||||
/* When using threads, errno is a per-thread value. */
|
||||
diff --git a/libc/sysdeps/linux/common/bits/uClibc_errno.h b/libc/sysdeps/linux/common/bits/uClibc_errno.h
|
||||
index 9c15618..79eb7e6 100644
|
||||
--- a/libc/sysdeps/linux/common/bits/uClibc_errno.h
|
||||
+++ b/libc/sysdeps/linux/common/bits/uClibc_errno.h
|
||||
@@ -33,9 +33,6 @@ extern int *__errno_location (void) __THROW __attribute__ ((__const__))
|
||||
;
|
||||
# if defined __UCLIBC_HAS_THREADS__
|
||||
# include <tls.h>
|
||||
-# if defined USE___THREAD && USE___THREAD
|
||||
-libc_hidden_proto(__errno_location)
|
||||
-# endif
|
||||
# endif
|
||||
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
--
|
||||
1.7.1
|
||||
|
@ -1,8 +1,8 @@
|
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31-more-workarounds-GCC-PR32219.patch
|
||||
# Copyright (C) 2010 The OpenSDE Project
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31.1-more-workarounds-GCC-PR32219.patch
|
||||
# Copyright (C) 2011 The OpenSDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
@ -0,0 +1,78 @@
|
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31.1-powerpc-ptrace-fix.patch
|
||||
# Copyright (C) 2011 The OpenSDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
||||
# This patch file is dual-licensed. It is available under the license the
|
||||
# patched project is licensed under, as long as it is an OpenSource license
|
||||
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||||
# of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
# --- SDE-COPYRIGHT-NOTE-END ---
|
||||
|
||||
[PATCH] powerpc: add PTRACE_EVENT_ defines needed by ltrace
|
||||
|
||||
Equivalent to the common version and kernel headers.
|
||||
|
||||
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
||||
---
|
||||
libc/sysdeps/linux/powerpc/sys/ptrace.h | 41 +++++++++++++++++++++++++++++++-
|
||||
1 file changed, 40 insertions(+), 1 deletion(-)
|
||||
|
||||
Index: uClibc-0.9.31/libc/sysdeps/linux/powerpc/sys/ptrace.h
|
||||
===================================================================
|
||||
--- uClibc-0.9.31.orig/libc/sysdeps/linux/powerpc/sys/ptrace.h
|
||||
+++ uClibc-0.9.31/libc/sysdeps/linux/powerpc/sys/ptrace.h
|
||||
@@ -79,8 +79,47 @@ enum __ptrace_request
|
||||
#define PT_DETACH PTRACE_DETACH
|
||||
|
||||
/* Continue and stop at the next (return from) syscall. */
|
||||
- PTRACE_SYSCALL = 24
|
||||
+ PTRACE_SYSCALL = 24,
|
||||
#define PT_SYSCALL PTRACE_SYSCALL
|
||||
+
|
||||
+ /* Set ptrace filter options. */
|
||||
+ PTRACE_SETOPTIONS = 0x4200,
|
||||
+#define PT_SETOPTIONS PTRACE_SETOPTIONS
|
||||
+
|
||||
+ /* Get last ptrace message. */
|
||||
+ PTRACE_GETEVENTMSG = 0x4201,
|
||||
+#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
|
||||
+
|
||||
+ /* Get siginfo for process. */
|
||||
+ PTRACE_GETSIGINFO = 0x4202,
|
||||
+#define PT_GETSIGINFO PTRACE_GETSIGINFO
|
||||
+
|
||||
+ /* Set new siginfo for process. */
|
||||
+ PTRACE_SETSIGINFO = 0x4203
|
||||
+#define PT_SETSIGINFO PTRACE_SETSIGINFO
|
||||
+};
|
||||
+
|
||||
+
|
||||
+/* Options set using PTRACE_SETOPTIONS. */
|
||||
+enum __ptrace_setoptions {
|
||||
+ PTRACE_O_TRACESYSGOOD = 0x00000001,
|
||||
+ PTRACE_O_TRACEFORK = 0x00000002,
|
||||
+ PTRACE_O_TRACEVFORK = 0x00000004,
|
||||
+ PTRACE_O_TRACECLONE = 0x00000008,
|
||||
+ PTRACE_O_TRACEEXEC = 0x00000010,
|
||||
+ PTRACE_O_TRACEVFORKDONE = 0x00000020,
|
||||
+ PTRACE_O_TRACEEXIT = 0x00000040,
|
||||
+ PTRACE_O_MASK = 0x0000007f
|
||||
+};
|
||||
+
|
||||
+/* Wait extended result codes for the above trace options. */
|
||||
+enum __ptrace_eventcodes {
|
||||
+ PTRACE_EVENT_FORK = 1,
|
||||
+ PTRACE_EVENT_VFORK = 2,
|
||||
+ PTRACE_EVENT_CLONE = 3,
|
||||
+ PTRACE_EVENT_EXEC = 4,
|
||||
+ PTRACE_EVENT_VFORK_DONE = 5,
|
||||
+ PTRACE_EVENT_EXIT = 6
|
||||
};
|
||||
|
||||
/* Perform process tracing functions. REQUEST is one of the values
|
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,8 @@
|
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31-workaround-GCC-PR32219.patch
|
||||
# Copyright (C) 2010 The OpenSDE Project
|
||||
# Filename: package/.../uclibc/uClibc-0.9.31.1-workaround-GCC-PR32219.patch
|
||||
# Copyright (C) 2011 The OpenSDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
Loading…
Reference in new issue