Commit 0cf2ac6b authored by Thomas Markwalder's avatar Thomas Markwalder

[#92] Max startup lease size now only checked on 32-bit OSes

parent 26243975
......@@ -103,6 +103,10 @@ ISC DHCP is open source software maintained by Internet Systems
Consortium. This product includes cryptographic software written
by Eric Young (
- The limit on the size of lease file that can be loaded at start up
is now only enforced on 32-bit systems.
[Gitlab #64]
Changes since 4.4.2b1 (Bug Fixes)
- Added a clarification on DHCPINFORMs and server authority to
......@@ -3,7 +3,7 @@
Parser for dhcpd config file... */
* Copyright (c) 2004-2019 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 2004-2020 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1995-2003 by Internet Software Consortium
* This Source Code Form is subject to the terms of the Mozilla Public
......@@ -142,7 +142,7 @@ isc_result_t read_conf_file (const char *filename, struct group *group,
if (lseek (file, (off_t)0, SEEK_SET) < 0)
goto boom;
/* Can't handle files greater than 2^31-1. */
if (flen > 0x7FFFFFFFUL)
if ((sizeof(void*) < 8) && flen > 0x7FFFFFFFUL)
log_fatal ("%s: file is too long to buffer.", filename);
ulen = flen;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment