]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[#92] Max startup lease size now only checked on 32-bit OSes
authorThomas Markwalder <tmark@isc.org>
Tue, 1 Sep 2020 17:46:43 +0000 (13:46 -0400)
committerThomas Markwalder <tmark@isc.org>
Wed, 12 Jan 2022 13:35:26 +0000 (08:35 -0500)
modified:
    RELNOTES
    server/confpars.c

RELNOTES
server/confpars.c

index bbf815708361c99055850980f932a55f84c37b4a..2a68198990582041ab03f93a6761deee38b1fc68 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -119,6 +119,10 @@ and the client Linux script sample was updated.
   client script exits abnormally (i.e. crashes).
   [Gitlab #123]
 
+- 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
index 4f0b58ee0044add245fd97f6ebf5261a0e8b66cf..e2216685fa29cbd45aa95e347a31d82caf23a0f8 100644 (file)
@@ -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;