]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix character buffer size in ub_ctx_hosts.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 15 Aug 2019 13:11:04 +0000 (15:11 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 15 Aug 2019 13:11:04 +0000 (15:11 +0200)
doc/Changelog
libunbound/libunbound.c

index 786f3c3e60df01a3c7acec87f36dfa16ccdffc10..62989f0090953482699caffc8df43ed0c7e10f06 100644 (file)
@@ -3,6 +3,7 @@
        - Fix autotrust temp file uniqueness windows compile.
        - avoid warning about upcast on 32bit systems for autotrust.
        - escape commandline contents for -V.
+       - Fix character buffer size in ub_ctx_hosts.
 
 14 August 2019: George
        - Fix #59, when compiled with systemd support check that we can properly
index 263dde5a4604f636ffdee8cdfec0486e19ffb592..63770cc025d960b85b9f85d6b6a394a89d56b9f2 100644 (file)
@@ -1159,7 +1159,7 @@ int
 ub_ctx_hosts(struct ub_ctx* ctx, const char* fname)
 {
        FILE* in;
-       char buf[1024], ldata[1024];
+       char buf[1024], ldata[2048];
        char* parse, *addr, *name, *ins;
        lock_basic_lock(&ctx->cfglock);
        if(ctx->finalized) {