diff options
author | imp <imp@FreeBSD.org> | 2014-11-29 17:29:30 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-11-29 17:29:30 +0000 |
commit | d737995628df5a4f316eee2f864017a1075f9f87 (patch) | |
tree | 5d677043192f44ec687bb4e64b96da4214efe946 /sys/boot | |
parent | 9127a1f190de89d3c7ceaba11d8869557f181912 (diff) | |
download | FreeBSD-src-d737995628df5a4f316eee2f864017a1075f9f87.zip FreeBSD-src-d737995628df5a4f316eee2f864017a1075f9f87.tar.gz |
The current limit of 100k for the linker hints file is getting a bit
crowded as we now are at about 70k. Bump the limit to 1MB instead
which is still quite a reasonable limit and allows for future growth
of this file and possible future expansion to additional data.
MFC After: 2 weeks
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/common/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c index a4bb215..6339f85 100644 --- a/sys/boot/common/module.c +++ b/sys/boot/common/module.c @@ -938,7 +938,7 @@ moduledir_readhints(struct moduledir *mdp) path = moduledir_fullpath(mdp, "linker.hints"); if (stat(path, &st) != 0 || st.st_size < (ssize_t)(sizeof(version) + sizeof(int)) || - st.st_size > 100 * 1024 || (fd = open(path, O_RDONLY)) < 0) { + st.st_size > LINKER_HINTS_MAX || (fd = open(path, O_RDONLY)) < 0) { free(path); mdp->d_flags |= MDIR_NOHINTS; return; |