summaryrefslogtreecommitdiff
path: root/src/file.h
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2023-02-09 17:45:19 +0000
committerChristos Zoulas <christos@zoulas.com>2023-02-09 17:45:19 +0000
commitf7a65dbf1739a8f8671621e41c5648d1f7e9f6ae (patch)
tree3759ad28e2687e787d570a8423ac3385478cc483 /src/file.h
parentc019f3c109cdf6606be265b8039f002d81d996bb (diff)
downloadfile-git-f7a65dbf1739a8f8671621e41c5648d1f7e9f6ae.tar.gz
bump notes section size to read to 128M (Vincent Michalkovic) and make it
configurable. Delete unused constants.
Diffstat (limited to 'src/file.h')
-rw-r--r--src/file.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file.h b/src/file.h
index 1e1f1e7a..9e37044f 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.241 2022/12/26 17:31:14 christos Exp $
+ * @(#)$File: file.h,v 1.242 2023/02/09 17:45:19 christos Exp $
*/
#ifndef __file_h__
@@ -482,12 +482,14 @@ struct magic_set {
uint16_t regex_max;
size_t bytes_max; /* number of bytes to read from file */
size_t encoding_max; /* bytes to look for encoding */
+ size_t elf_shsize_max;
#ifndef FILE_BYTES_MAX
# 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
+#define FILE_ELF_SHSIZE_MAX (128 * 1024 * 1024)
#define FILE_INDIR_MAX 50
#define FILE_NAME_MAX 50
#define FILE_REGEX_MAX 8192