summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch')
-rw-r--r--meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch b/meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch
new file mode 100644
index 0000000000..57725b1c5f
--- /dev/null
+++ b/meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch
@@ -0,0 +1,33 @@
1From fc6b51aa67a11806c95363e1bec925d15b3a98a5 Mon Sep 17 00:00:00 2001
2From: Christos Zoulas <christos@zoulas.com>
3Date: Thu, 5 Dec 2024 18:35:40 +0000
4Subject: [PATCH] PR/579: net147: Fix stack overrun.
5
6Upstream-Status: Backport [https://github.com/file/file/commit/b3384a1fbfa1fee99986e5750ab8e700de4f24ad]
7Signed-off-by: Alexander Kanavin <alex@linutronix.de>
8---
9 src/readelf.c | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12diff --git a/src/readelf.c b/src/readelf.c
13index fe4cf541..d209d86d 100644
14--- a/src/readelf.c
15+++ b/src/readelf.c
16@@ -27,7 +27,7 @@
17 #include "file.h"
18
19 #ifndef lint
20-FILE_RCSID("@(#)$File: readelf.c,v 1.196 2024/11/11 15:49:11 christos Exp $")
21+FILE_RCSID("@(#)$File: readelf.c,v 1.197 2024/12/05 18:35:40 christos Exp $")
22 #endif
23
24 #ifdef BUILTIN_ELF
25@@ -1726,7 +1726,7 @@ dophn_exec(struct magic_set *ms, int clazz, int swap, int fd, off_t off,
26 Elf64_Phdr ph64;
27 const char *linking_style;
28 unsigned char nbuf[NBUFSIZE];
29- char interp[128];
30+ char interp[NBUFSIZE];
31 ssize_t bufsize;
32 size_t offset, align, need = 0;
33 int pie = 0, dynamic = 0;