ソースを参照

Cherry-pick "Fix stack overrun". Closes: #1101470

Christoph Biedl 3 週間 前
コミット
6e5fd21bd0

+ 17 - 0
debian/patches/1733423740.FILE5_46-7-gb3384a1f.pr-579-net147-fix-stack-overrun.patch

@@ -0,0 +1,17 @@
+Subject: PR/579: net147: Fix stack overrun.
+Origin: upstream, commit FILE5_46-7-gb3384a1f <https://github.com/file/file/commit/FILE5_46-7-gb3384a1f>
+Author: Christos Zoulas <christos@zoulas.com>
+Date: Thu Dec 5 18:35:40 2024 +0000
+Bug-Debian: https://bugs.debian.org/1101470
+
+--- a/src/readelf.c
++++ b/src/readelf.c
+@@ -1726,7 +1726,7 @@
+ 	Elf64_Phdr ph64;
+ 	const char *linking_style;
+ 	unsigned char nbuf[NBUFSIZE];
+-	char interp[128];
++	char interp[NBUFSIZE];
+ 	ssize_t bufsize;
+ 	size_t offset, align, need = 0;
+ 	int pie = 0, dynamic = 0;

+ 1 - 0
debian/patches/series

@@ -1,6 +1,7 @@
 # reverted upstream commits
 
 # cherry-picked commits. Keep in upstream's chronological order
+1733423740.FILE5_46-7-gb3384a1f.pr-579-net147-fix-stack-overrun.patch
 1741021322.FILE5_46-55-gff9ba253.use-unsigned-byte-christoph-biedl.patch
 1742485595.FILE5_46-68-g5089651f.fix-openstreetmap-christoph-biedl.patch
 1742492756.FILE5_46-69-g280e121f.remove-superfluous-christoph-biedl.patch