diff options
Diffstat (limited to 'meta/recipes-core/glibc/glibc/0002-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch')
-rw-r--r-- | meta/recipes-core/glibc/glibc/0002-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-core/glibc/glibc/0002-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch b/meta/recipes-core/glibc/glibc/0002-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch index daadec76c7..f663e18edd 100644 --- a/meta/recipes-core/glibc/glibc/0002-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch +++ b/meta/recipes-core/glibc/glibc/0002-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch | |||
@@ -1,7 +1,8 @@ | |||
1 | From fdc8a33ac2c81a0237b8a6d8b1aac7f1cdbb46af Mon Sep 17 00:00:00 2001 | 1 | From f275c04e263fc2ebf2eaad6ac1ab3c838647bb14 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 02/30] 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,7 +22,7 @@ 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 44bbb69dc4..74e2e5e962 100644 | 25 | index e53c3a1b7b..2bd9bc27f2 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 | @@ -1785,7 +1785,19 @@ open_path (const char *name, size_t namelen, int mode, | 28 | @@ -1785,7 +1785,19 @@ open_path (const char *name, size_t namelen, int mode, |
@@ -44,3 +45,6 @@ index 44bbb69dc4..74e2e5e962 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.20.1 | ||
50 | |||