Browse Source

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

Christoph Biedl 3 years ago
parent
commit
fc81fc0eed
2 changed files with 19 additions and 0 deletions
  1. 17 0
      debian/patches/increase.number.use.magic.limit.patch
  2. 2 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

+ 2 - 0
debian/patches/series

@@ -18,6 +18,8 @@ cherry-pick.FILE5_35-59-g8305d1cc.use-c-casts-everywhere.patch
 cherry-pick.FILE5_36-1-gecca6e54.fix-casts-and-bounds-check-found-by-oss-fuzz.patch
 cherry-pick.FILE5_36-24-g9b2f9d6a.cast-to-unsigned-first-to-appease-ubsan-oss-fuzz.patch
 cherry-pick.FILE5_37-67-g46a8443f.limit-the-number-of-elements-in-a-vector-found-by-oss-fuzz.patch
+# part of FILE5_38-65-gdf476c81
+increase.number.use.magic.limit.patch
 
 # patches that should go upstream