Hello community, here is the log from the commit of package nsd for openSUSE:Factory checked in at 2018-02-21 14:14:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nsd (Old) and /work/SRC/openSUSE:Factory/.nsd.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nsd" Wed Feb 21 14:14:02 2018 rev:3 rq:578670 version:4.1.20 Changes: -------- --- /work/SRC/openSUSE:Factory/nsd/nsd.changes 2018-02-20 17:55:11.782202799 +0100 +++ /work/SRC/openSUSE:Factory/.nsd.new/nsd.changes 2018-02-21 14:14:05.808516775 +0100 @@ -1,0 +2,8 @@ +Wed Feb 21 09:52:31 UTC 2018 - [email protected] + +- Update to 4.1.20: + + Fix memory leak in zone file read of unknown rr formatted RRs. + + Fix memory leak when rehashing nsec3 after axfr or zonefile + read, in the selectively allocated precompiled nsec3 hashes. + +------------------------------------------------------------------- Old: ---- nsd-4.1.19.tar.gz nsd-4.1.19.tar.gz.asc New: ---- nsd-4.1.20.tar.gz nsd-4.1.20.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nsd.spec ++++++ --- /var/tmp/diff_new_pack.M1zVse/_old 2018-02-21 14:14:06.656486237 +0100 +++ /var/tmp/diff_new_pack.M1zVse/_new 2018-02-21 14:14:06.656486237 +0100 @@ -23,7 +23,7 @@ %define zonesdir %{configdir}/zones %define pidfile %{_rundir}/nsd/nsd.pid Name: nsd -Version: 4.1.19 +Version: 4.1.20 Release: 0 # Summary: An authoritative-only domain name server ++++++ nsd-4.1.19.tar.gz -> nsd-4.1.20.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/Makefile.in new/nsd-4.1.20/Makefile.in --- old/nsd-4.1.19/Makefile.in 2017-07-17 15:39:53.000000000 +0200 +++ new/nsd-4.1.20/Makefile.in 2018-02-09 16:55:19.000000000 +0100 @@ -444,6 +444,9 @@ xfrd-tcp.o: $(srcdir)/xfrd-tcp.c config.h $(srcdir)/nsd.h $(srcdir)/dns.h $(srcdir)/edns.h $(srcdir)/buffer.h \ $(srcdir)/region-allocator.h $(srcdir)/util.h $(srcdir)/xfrd-tcp.h $(srcdir)/xfrd.h $(srcdir)/rbtree.h $(srcdir)/namedb.h $(srcdir)/dname.h \ $(srcdir)/radtree.h $(srcdir)/options.h $(srcdir)/tsig.h $(srcdir)/packet.h $(srcdir)/xfrd-disk.h +xfr-inspect.o: $(srcdir)/xfr-inspect.c config.h $(srcdir)/udbzone.h $(srcdir)/udb.h $(srcdir)/dns.h $(srcdir)/udbradtree.h \ + $(srcdir)/util.h $(srcdir)/buffer.h $(srcdir)/region-allocator.h $(srcdir)/packet.h $(srcdir)/namedb.h $(srcdir)/dname.h $(srcdir)/radtree.h \ + $(srcdir)/rbtree.h $(srcdir)/rdata.h $(srcdir)/difffile.h $(srcdir)/options.h zlexer.o: zlexer.c config.h $(srcdir)/zonec.h $(srcdir)/namedb.h $(srcdir)/dname.h $(srcdir)/buffer.h \ $(srcdir)/region-allocator.h $(srcdir)/util.h $(srcdir)/dns.h $(srcdir)/radtree.h $(srcdir)/rbtree.h zparser.h zonec.o: $(srcdir)/zonec.c config.h $(srcdir)/zonec.h $(srcdir)/namedb.h $(srcdir)/dname.h $(srcdir)/buffer.h \ @@ -511,7 +514,3 @@ $(srcdir)/udb.h $(srcdir)/udbzone.h $(srcdir)/dns.h $(srcdir)/udbradtree.h $(srcdir)/util.h $(srcdir)/buffer.h $(srcdir)/region-allocator.h \ $(srcdir)/util.h $(srcdir)/packet.h $(srcdir)/namedb.h $(srcdir)/dname.h $(srcdir)/buffer.h $(srcdir)/radtree.h $(srcdir)/rbtree.h $(srcdir)/rdata.h \ $(srcdir)/namedb.h $(srcdir)/difffile.h $(srcdir)/options.h config.h -xfr-inspect.o: $(srcdir)/xfr-inspect.c config.h $(srcdir)/udbzone.h $(srcdir)/udb.h $(srcdir)/dns.h \ - $(srcdir)/udbradtree.h $(srcdir)/util.h $(srcdir)/buffer.h $(srcdir)/region-allocator.h $(srcdir)/util.h $(srcdir)/packet.h $(srcdir)/namedb.h \ - $(srcdir)/dname.h $(srcdir)/buffer.h $(srcdir)/radtree.h $(srcdir)/rbtree.h $(srcdir)/rdata.h $(srcdir)/namedb.h $(srcdir)/difffile.h \ - $(srcdir)/options.h config.h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/configure new/nsd-4.1.20/configure --- old/nsd-4.1.19/configure 2017-12-11 10:46:24.000000000 +0100 +++ new/nsd-4.1.20/configure 2018-02-20 09:14:22.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for NSD 4.1.19. +# Generated by GNU Autoconf 2.69 for NSD 4.1.20. # # Report bugs to <[email protected]>. # @@ -580,8 +580,8 @@ # Identity of this package. PACKAGE_NAME='NSD' PACKAGE_TARNAME='nsd' -PACKAGE_VERSION='4.1.19' -PACKAGE_STRING='NSD 4.1.19' +PACKAGE_VERSION='4.1.20' +PACKAGE_STRING='NSD 4.1.20' PACKAGE_BUGREPORT='[email protected]' PACKAGE_URL='' @@ -1285,7 +1285,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures NSD 4.1.19 to adapt to many kinds of systems. +\`configure' configures NSD 4.1.20 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1346,7 +1346,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of NSD 4.1.19:";; + short | recursive ) echo "Configuration of NSD 4.1.20:";; esac cat <<\_ACEOF @@ -1494,7 +1494,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -NSD configure 4.1.19 +NSD configure 4.1.20 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2203,7 +2203,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by NSD $as_me 4.1.19, which was +It was created by NSD $as_me 4.1.20, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -9715,7 +9715,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by NSD $as_me 4.1.19, which was +This file was extended by NSD $as_me 4.1.20, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -9777,7 +9777,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -NSD config.status 4.1.19 +NSD config.status 4.1.20 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/configure.ac new/nsd-4.1.20/configure.ac --- old/nsd-4.1.19/configure.ac 2017-12-11 09:25:16.000000000 +0100 +++ new/nsd-4.1.20/configure.ac 2017-12-11 10:57:02.000000000 +0100 @@ -4,7 +4,7 @@ sinclude(acx_nlnetlabs.m4) -AC_INIT(NSD,4.1.19,[email protected]) +AC_INIT(NSD,4.1.20,[email protected]) AC_CONFIG_HEADER([config.h]) CFLAGS="$CFLAGS" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/doc/ChangeLog new/nsd-4.1.20/doc/ChangeLog --- old/nsd-4.1.19/doc/ChangeLog 2017-12-11 10:34:30.000000000 +0100 +++ new/nsd-4.1.20/doc/ChangeLog 2018-02-14 11:52:34.000000000 +0100 @@ -1,7 +1,21 @@ +14 February 2017: Wouter + - updated RELNOTES for upcoming release. + +9 February 2017: Wouter + - make depend: updated the make dependencies in the Makefile. + +8 February 2017: Wouter + - Fix memory leak when rehashing nsec3 after axfr or zonefile read, + in the selectively allocated precompiled nsec3 hashes. + +6 February 2017: Wouter + - Fix memory leak in zone file read of unknown rr formatted RRs. + 11 December 2017: Wouter - Add test for support of -Wno-address-of-packed-member for --enable-packed. - tag for release 4.1.19 + - trunk has 4.1.20 in development. 8 December 2017: Wouter - tag for 4.1.19rc1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/doc/README new/nsd-4.1.20/doc/README --- old/nsd-4.1.19/doc/README 2017-12-11 10:46:25.000000000 +0100 +++ new/nsd-4.1.20/doc/README 2018-02-20 09:14:23.000000000 +0100 @@ -19,7 +19,7 @@ 1.0 Introduction -This is NSD Name Server Daemon (NSD) version 4.1.19. +This is NSD Name Server Daemon (NSD) version 4.1.20. The NLnet Labs Name Server Daemon (NSD) is an authoritative RFC compliant DNS nameserver. It was first conceived to allow for more genetic @@ -55,7 +55,7 @@ 1.2 Quick build and install -Step 1: Unpack the source with gtar -xzvf nsd-4.1.19.tar.gz +Step 1: Unpack the source with gtar -xzvf nsd-4.1.20.tar.gz Step 2: Create user nsd or any other unprivileged user of your choice. In case of later make sure to use @@ -109,9 +109,9 @@ Use your favorite combination of tar and gnu zip to unpack the source, for example -$ gtar -xzvf nsd-4.1.19.tar.gz +$ gtar -xzvf nsd-4.1.20.tar.gz -will unpack the source into the ./nsd-4.1.19 directory... +will unpack the source into the ./nsd-4.1.20 directory... 2.2 Configuring NSD diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/doc/RELNOTES new/nsd-4.1.20/doc/RELNOTES --- old/nsd-4.1.19/doc/RELNOTES 2017-12-11 09:25:16.000000000 +0100 +++ new/nsd-4.1.20/doc/RELNOTES 2018-02-14 11:52:34.000000000 +0100 @@ -1,5 +1,13 @@ NSD RELEASE NOTES +4.1.20 +================ +BUG FIXES: + - Fix memory leak in zone file read of unknown rr formatted RRs. + - Fix memory leak when rehashing nsec3 after axfr or zonefile read, + in the selectively allocated precompiled nsec3 hashes. + + 4.1.19 ================ BUG FIXES: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/namedb.c new/nsd-4.1.20/namedb.c --- old/nsd-4.1.19/namedb.c 2017-11-06 14:08:34.000000000 +0100 +++ new/nsd-4.1.20/namedb.c 2018-02-08 10:09:01.000000000 +0100 @@ -242,6 +242,16 @@ if(domain->nsec3->ds_parent_hash && domain->nsec3->ds_parent_hash->node.key) zone_del_domain_in_hash_tree(nsec3_tree_dszone(db, domain) ->dshashtree, &domain->nsec3->ds_parent_hash->node); + if(domain->nsec3->hash_wc) { + region_recycle(db->domains->region, + domain->nsec3->hash_wc, + sizeof(nsec3_hash_wc_node_type)); + } + if(domain->nsec3->ds_parent_hash) { + region_recycle(db->domains->region, + domain->nsec3->ds_parent_hash, + sizeof(nsec3_hash_node_type)); + } region_recycle(db->domains->region, domain->nsec3, sizeof(struct nsec3_domain_data)); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/nsd-checkconf.8.in new/nsd-4.1.20/nsd-checkconf.8.in --- old/nsd-4.1.19/nsd-checkconf.8.in 2017-12-11 10:46:25.000000000 +0100 +++ new/nsd-4.1.20/nsd-checkconf.8.in 2018-02-20 09:14:23.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "nsd\-checkconf" "8" "Dec 11, 2017" "NLnet Labs" "nsd 4.1.19" +.TH "nsd\-checkconf" "8" "Feb 20, 2018" "NLnet Labs" "nsd 4.1.20" .\" Copyright (c) 2001\-2008, NLnet Labs. All rights reserved. .\" See LICENSE for the license. .SH "NAME" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/nsd-checkzone.8.in new/nsd-4.1.20/nsd-checkzone.8.in --- old/nsd-4.1.19/nsd-checkzone.8.in 2017-12-11 10:46:25.000000000 +0100 +++ new/nsd-4.1.20/nsd-checkzone.8.in 2018-02-20 09:14:23.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "nsd\-checkzone" "8" "Dec 11, 2017" "NLnet Labs" "nsd 4.1.19" +.TH "nsd\-checkzone" "8" "Feb 20, 2018" "NLnet Labs" "nsd 4.1.20" .\" Copyright (c) 2014, NLnet Labs. All rights reserved. .\" See LICENSE for the license. .SH "NAME" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/nsd-control.8.in new/nsd-4.1.20/nsd-control.8.in --- old/nsd-4.1.19/nsd-control.8.in 2017-12-11 10:46:25.000000000 +0100 +++ new/nsd-4.1.20/nsd-control.8.in 2018-02-20 09:14:23.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "nsd\-control" "8" "Dec 11, 2017" "NLnet Labs" "nsd 4.1.19" +.TH "nsd\-control" "8" "Feb 20, 2018" "NLnet Labs" "nsd 4.1.20" .\" Copyright (c) 2011, NLnet Labs. All rights reserved. .\" See LICENSE for the license. .SH "NAME" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/nsd.8.in new/nsd-4.1.20/nsd.8.in --- old/nsd-4.1.19/nsd.8.in 2017-12-11 10:46:25.000000000 +0100 +++ new/nsd-4.1.20/nsd.8.in 2018-02-20 09:14:23.000000000 +0100 @@ -1,9 +1,9 @@ -.TH "NSD" "8" "Dec 11, 2017" "NLnet Labs" "NSD 4.1.19" +.TH "NSD" "8" "Feb 20, 2018" "NLnet Labs" "NSD 4.1.20" .\" Copyright (c) 2001\-2008, NLnet Labs. All rights reserved. .\" See LICENSE for the license. .SH "NAME" .B nsd -\- Name Server Daemon (NSD) version 4.1.19. +\- Name Server Daemon (NSD) version 4.1.20. .SH "SYNOPSIS" .B nsd .RB [ \-4 ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/nsd.conf.5.in new/nsd-4.1.20/nsd.conf.5.in --- old/nsd-4.1.19/nsd.conf.5.in 2017-12-11 10:46:25.000000000 +0100 +++ new/nsd-4.1.20/nsd.conf.5.in 2018-02-20 09:14:23.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "nsd.conf" "5" "Dec 11, 2017" "NLnet Labs" "nsd 4.1.19" +.TH "nsd.conf" "5" "Feb 20, 2018" "NLnet Labs" "nsd 4.1.20" .\" Copyright (c) 2001\-2008, NLnet Labs. All rights reserved. .\" See LICENSE for the license. .SH "NAME" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/zonec.c new/nsd-4.1.20/zonec.c --- old/nsd-4.1.19/zonec.c 2017-09-18 16:06:52.000000000 +0200 +++ new/nsd-4.1.20/zonec.c 2018-02-06 13:52:22.000000000 +0100 @@ -1260,6 +1260,8 @@ zadd_rdata_wireformat(rdatas[i].data); } } + region_recycle(parser->region, rdatas, + rdata_count*sizeof(rdata_atom_type)); } @@ -1626,6 +1628,7 @@ name, domain_to_string( parser->current_zone->soa_rrset->rrs[0].owner)); } + region_free_all(parser->rr_region); parser_flush(); fclose(yyin); @@ -1719,6 +1722,7 @@ /* remove origin if it was not used during the parse */ if(parser->origin != error_domain) domain_table_deldomain(parser->db, parser->origin); + region_free_all(parser->rr_region); zonec_desetup_string_parser(); parser_flush(); return errors; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/zparser.c new/nsd-4.1.20/zparser.c --- old/nsd-4.1.19/zparser.c 2017-12-11 10:46:25.000000000 +0100 +++ new/nsd-4.1.20/zparser.c 2018-02-20 09:14:23.000000000 +0100 @@ -3295,7 +3295,7 @@ #line 1079 "zparser.y" /* yacc.c:1646 */ { /* $2 is the number of octets, currently ignored */ - (yyval.unknown) = zparser_conv_hex(parser->region, (yyvsp[-1].data).str, (yyvsp[-1].data).len); + (yyval.unknown) = zparser_conv_hex(parser->rr_region, (yyvsp[-1].data).str, (yyvsp[-1].data).len); } #line 3302 "zparser.c" /* yacc.c:1646 */ @@ -3304,7 +3304,7 @@ case 232: #line 1085 "zparser.y" /* yacc.c:1646 */ { - (yyval.unknown) = zparser_conv_hex(parser->region, "", 0); + (yyval.unknown) = zparser_conv_hex(parser->rr_region, "", 0); } #line 3310 "zparser.c" /* yacc.c:1646 */ break; @@ -3312,7 +3312,7 @@ case 233: #line 1089 "zparser.y" /* yacc.c:1646 */ { - (yyval.unknown) = zparser_conv_hex(parser->region, "", 0); + (yyval.unknown) = zparser_conv_hex(parser->rr_region, "", 0); } #line 3318 "zparser.c" /* yacc.c:1646 */ break; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nsd-4.1.19/zparser.y new/nsd-4.1.20/zparser.y --- old/nsd-4.1.19/zparser.y 2017-05-16 16:58:01.000000000 +0200 +++ new/nsd-4.1.20/zparser.y 2018-02-06 13:52:22.000000000 +0100 @@ -1078,16 +1078,16 @@ rdata_unknown: URR sp STR sp str_sp_seq trail { /* $2 is the number of octets, currently ignored */ - $$ = zparser_conv_hex(parser->region, $5.str, $5.len); + $$ = zparser_conv_hex(parser->rr_region, $5.str, $5.len); } | URR sp STR trail { - $$ = zparser_conv_hex(parser->region, "", 0); + $$ = zparser_conv_hex(parser->rr_region, "", 0); } | URR error NL { - $$ = zparser_conv_hex(parser->region, "", 0); + $$ = zparser_conv_hex(parser->rr_region, "", 0); } ; %%
