diff options
Diffstat (limited to 'meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch')
-rw-r--r-- | meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch b/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch index 62e12897f5..a3b5b7750c 100644 --- a/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch +++ b/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch | |||
@@ -1,7 +1,8 @@ | |||
1 | From 7806340c2accc2c51e7e861b618c29fb5609a007 Mon Sep 17 00:00:00 2001 | 1 | From 258c44e4ecffd830cb89d0016d45b2bac765f559 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 01:50:00 +0000 | 3 | Date: Wed, 18 Mar 2015 01:50:00 +0000 |
4 | Subject: [PATCH] nativesdk-glibc: Fix buffer overrun with a relocated SDK | 4 | Subject: [PATCH 04/29] nativesdk-glibc: Fix buffer overrun with a relocated |
5 | SDK | ||
5 | 6 | ||
6 | When ld-linux-*.so.2 is relocated to a path that is longer than the | 7 | When ld-linux-*.so.2 is relocated to a path that is longer than the |
7 | original fixed location, the dynamic loader will crash in open_path | 8 | original fixed location, the dynamic loader will crash in open_path |
@@ -21,10 +22,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
21 | 1 file changed, 12 insertions(+) | 22 | 1 file changed, 12 insertions(+) |
22 | 23 | ||
23 | diff --git a/elf/dl-load.c b/elf/dl-load.c | 24 | diff --git a/elf/dl-load.c b/elf/dl-load.c |
24 | index 3226f2e531..7cb8a86fab 100644 | 25 | index 565b039b23..e1b3486549 100644 |
25 | --- a/elf/dl-load.c | 26 | --- a/elf/dl-load.c |
26 | +++ b/elf/dl-load.c | 27 | +++ b/elf/dl-load.c |
27 | @@ -1773,7 +1773,19 @@ open_path (const char *name, size_t namelen, int mode, | 28 | @@ -1860,7 +1860,19 @@ open_path (const char *name, size_t namelen, int mode, |
28 | given on the command line when rtld is run directly. */ | 29 | given on the command line when rtld is run directly. */ |
29 | return -1; | 30 | return -1; |
30 | 31 | ||
@@ -44,3 +45,6 @@ index 3226f2e531..7cb8a86fab 100644 | |||
44 | do | 45 | do |
45 | { | 46 | { |
46 | struct r_search_path_elem *this_dir = *dirs; | 47 | struct r_search_path_elem *this_dir = *dirs; |
48 | -- | ||
49 | 2.27.0 | ||
50 | |||