summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2022-10-02 12:53:28 +0000
committerChristos Zoulas <christos@zoulas.com>2022-10-02 12:53:28 +0000
commitd2659ae455c7df7e8c6355dfaaea1180236a2932 (patch)
treef3b7fbb8a3f1fae42b1d607b45592b16b7e2620f /src
parentd7fac1bf849fae9df23ac9377e07f4e3bc597102 (diff)
downloadfile-git-d2659ae455c7df7e8c6355dfaaea1180236a2932.tar.gz
Increase the number of bytes we are looking for (Joerg Jenderek)
Diffstat (limited to 'src')
-rw-r--r--src/file.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file.h b/src/file.h
index 359a12a9..8281426f 100644
--- a/src/file.h
+++ b/src/file.h
@@ -27,7 +27,7 @@
*/
/*
* file.h - definitions for file(1) program
- * @(#)$File: file.h,v 1.239 2022/09/24 20:30:13 christos Exp $
+ * @(#)$File: file.h,v 1.240 2022/10/02 12:53:28 christos Exp $
*/
#ifndef __file_h__
@@ -483,8 +483,8 @@ struct magic_set {
size_t bytes_max; /* number of bytes to read from file */
size_t encoding_max; /* bytes to look for encoding */
#ifndef FILE_BYTES_MAX
-# define FILE_BYTES_MAX (1024 * 1024) /* how much of the file to look at */
-#endif
+# define FILE_BYTES_MAX (7 * 1024 * 1024)/* how much of the file to look at */
+#endif /* above 0x6ab0f4 map offset for HelveticaNeue.dfont */
#define FILE_ELF_NOTES_MAX 256
#define FILE_ELF_PHNUM_MAX 2048
#define FILE_ELF_SHNUM_MAX 32768