Browse Source

Change default for name/use to 50. Closes: #928009

Christoph Biedl 3 years ago
parent
commit
36054ee4f0
2 changed files with 18 additions and 0 deletions
  1. 17 0
      debian/patches/increase.number.use.magic.limit.patch
  2. 1 0
      debian/patches/series

+ 17 - 0
debian/patches/increase.number.use.magic.limit.patch

@@ -0,0 +1,17 @@
+Subject: Change default for name/use to 50
+Origin: Part of FILE5_38-65-gdf476c81 <https://github.com/file/file/commit/FILE5_38-65-gdf476c81>
+Upstream-Author: Christos Zoulas <christos@zoulas.com>
+Date: Thu Mar 19 20:41:11 2020 +0000
+Bug-Debian: https://bugs.debian.org/928009
+
+--- a/src/file.h
++++ b/src/file.h
+@@ -437,7 +437,7 @@
+ 	uint16_t regex_max;
+ 	size_t bytes_max;		/* number of bytes to read from file */
+ #define	FILE_INDIR_MAX			50
+-#define	FILE_NAME_MAX			30
++#define	FILE_NAME_MAX			50
+ #define	FILE_ELF_SHNUM_MAX		32768
+ #define	FILE_ELF_PHNUM_MAX		2048
+ #define	FILE_ELF_NOTES_MAX		256

+ 1 - 0
debian/patches/series

@@ -2,6 +2,7 @@
 
 # cherry-picked commits. Keep in upstream's chronological order
 cherry-pick.FILE5_38-1-gd955cefc.-td-is-for-ptrdiff-t-not-for-off-t.patch
+increase.number.use.magic.limit.patch
 cherry-pick.FILE5_38-98-g028a1561.pr-93-undo-previous-there-are-dynamic-objects-shared-libraries-for-example.patch
 
 # patches that should go upstream