Compare commits

...

15 Commits

Author SHA1 Message Date
Mark Andrews
2f73dd493f add safe.[ch] 2014-05-23 23:42:39 +10:00
Mark Andrews
e8ce2859b2 remove bind9.c 2014-05-23 23:14:15 +10:00
Mark Andrews
194c5f3acd crc64.c and bind9.c are not part of 9.9.5 2014-05-23 22:36:19 +10:00
Mark Andrews
560f059c1e add 2014-05-23 14:45:44 +10:00
Mark Andrews
1ff98ad25b 9.9.5-P1 2014-05-23 12:03:14 +10:00
Mark Andrews
7bf60ecc65 9.9.5-P1 2014-05-23 11:41:27 +10:00
Mark Andrews
c14261d2c8 use 1U in comparison 2014-05-23 11:35:21 +10:00
Mark Andrews
bb8d20ab5a 3859. [bug] Don't call qsort with a null pointer. [RT #35968] 2014-05-23 11:32:43 +10:00
Mark Andrews
86295efc63 3858. [bug] Disable GCC 4.9 "delete null pointer check".
[RT #35968]

(cherry picked from commit 603a787083)

Conflicts:
	CHANGES
2014-05-23 11:27:52 +10:00
Mark Andrews
c6360549fd update descrition 2014-02-18 10:04:58 +11:00
Mark Andrews
a25791c780 3742. [port] linux: libcap support: curval was used before it
was declared. [RT #35387]

(cherry picked from commit 5114325978)
2014-02-18 00:31:04 +11:00
Mark Andrews
ecd1b8f348 9.9.5-W1 2014-02-06 10:34:31 +11:00
Mark Andrews
cb1983f94f #include <inttypes.h>
(cherry picked from commit 1e3d792c8e)
2014-02-05 12:50:09 +11:00
Evan Hunt
762ef7e52e [v9_8] add stdint.h
(cherry picked from commit 3b141b7d18)
2014-02-05 12:49:55 +11:00
Evan Hunt
6a447dc272 [master] fixed win32 dig problem
3724.   [bug]           win32: Fixed a bug that prevented dig and
                        host from exiting properly after completing
                        a UDP query. [RT #35288]

(cherry picked from commit a8cdf2a2e7)
2014-02-05 12:43:40 +11:00
13 changed files with 100 additions and 29 deletions

16
CHANGES
View File

@@ -1,3 +1,19 @@
--- 9.9.5-P1 released ---
3859. [bug] Don't call qsort with a null pointer. [RT #35968]
3858. [bug] Disable GCC 4.9 "delete null pointer check".
[RT #35968]
3742. [port] linux: libcap support: declare curval at start of
block. [RT #35387]
--- 9.9.5-W1 released ---
3724. [bug] win32: Fixed a bug that prevented dig and
host from exiting properly after completing
a UDP query. [RT #35288]
--- 9.9.5 released ---
--- 9.9.5rc2 released ---

5
README
View File

@@ -51,6 +51,11 @@ BIND 9
For up-to-date release notes and errata, see
http://www.isc.org/software/bind9/releasenotes
BIND 9.9.5-P1
This release should be used if you compile with GCC 4.9.0 or
later.
BIND 9.9.5
BIND 9.9.5 is a maintenance release, and patches the security

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004-2011, 2013 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2011, 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -197,8 +197,8 @@ linux_setcaps(cap_t caps) {
#ifdef HAVE_LIBCAP
#define SET_CAP(flag) \
do { \
capval = (flag); \
cap_flag_value_t curval; \
capval = (flag); \
err = cap_get_flag(curcaps, capval, CAP_PERMITTED, &curval); \
if (err != -1 && curval) { \
err = cap_set_flag(caps, CAP_EFFECTIVE, 1, &capval, CAP_SET); \

1
bin/tests/system/ecdsa/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
prereq.sh

41
configure vendored
View File

@@ -15489,9 +15489,10 @@ MKDEPCFLAGS="-M"
IRIX_DNSSEC_WARNINGS_HACK=""
if test "X$GCC" = "Xyes"; then
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
$as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
SAVE_CFLAGS=$CFLAGS
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fno-strict-aliasing"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -15510,15 +15511,47 @@ else
FNOSTRICTALIASING=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
CFLAGS=$SAVE_CFLAGS
CFLAGS="$SAVE_CFLAGS"
if test "$FNOSTRICTALIASING" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
#
# turn off delete null pointer checks
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5
$as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; }
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
FNODELETENULLPOINTERCHECKS=yes
else
FNODELETENULLPOINTERCHECKS=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
CFLAGS="$SAVE_CFLAGS"
if test "$FNODELETENULLPOINTERCHECKS" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
fi
case "$host" in
*-hp-hpux*)

View File

@@ -1495,17 +1495,32 @@ MKDEPCFLAGS="-M"
IRIX_DNSSEC_WARNINGS_HACK=""
if test "X$GCC" = "Xyes"; then
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
AC_MSG_CHECKING(if "$CC" supports -fno-strict-aliasing)
SAVE_CFLAGS=$CFLAGS
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fno-strict-aliasing"
AC_TRY_COMPILE(,, [FNOSTRICTALIASING=yes],[FNOSTRICTALIASING=no])
CFLAGS=$SAVE_CFLAGS
CFLAGS="$SAVE_CFLAGS"
if test "$FNOSTRICTALIASING" = "yes"; then
AC_MSG_RESULT(yes)
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
else
AC_MSG_RESULT(no)
fi
#
# turn off delete null pointer checks
#
AC_MSG_CHECKING(if "$CC" supports -fno-delete-null-pointer-checks)
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
AC_TRY_COMPILE(,, [FNODELETENULLPOINTERCHECKS=yes],
[FNODELETENULLPOINTERCHECKS=no])
CFLAGS="$SAVE_CFLAGS"
if test "$FNODELETENULLPOINTERCHECKS" = "yes"; then
AC_MSG_RESULT(yes)
STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
else
AC_MSG_RESULT(no)
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
fi
case "$host" in
*-hp-hpux*)

View File

@@ -194,7 +194,8 @@ dns_rdataslab_fromrdataset(dns_rdataset_t *rdataset, isc_mem_t *mctx,
/*
* Put into DNSSEC order.
*/
qsort(x, nalloc, sizeof(struct xrdata), compare_rdata);
if (nalloc > 1U)
qsort(x, nalloc, sizeof(struct xrdata), compare_rdata);
/*
* Remove duplicates and compute the total storage required.

View File

@@ -59,9 +59,6 @@
<ClInclude Include="..\include\isc\commandline.h">
<Filter>Library Header Files</Filter>
</ClInclude>
<ClInclude Include="..\include\isc\crc64.h">
<Filter>Library Header Files</Filter>
</ClInclude>
<ClInclude Include="..\include\isc\entropy.h">
<Filter>Library Header Files</Filter>
</ClInclude>
@@ -209,6 +206,9 @@
<ClInclude Include="..\include\isc\rwlock.h">
<Filter>Library Header Files</Filter>
</ClInclude>
<ClInclude Include="..\include\isc\safe.h">
<Filter>Library Header Files</Filter>
</ClInclude>
<ClInclude Include="..\include\isc\serial.h">
<Filter>Library Header Files</Filter>
</ClInclude>
@@ -443,9 +443,6 @@
<ClCompile Include="..\base64.c">
<Filter>Library Source Files</Filter>
</ClCompile>
<ClCompile Include="..\bind9.c">
<Filter>Library Source Files</Filter>
</ClCompile>
<ClCompile Include="..\bitstring.c">
<Filter>Library Source Files</Filter>
</ClCompile>
@@ -458,9 +455,6 @@
<ClCompile Include="..\commandline.c">
<Filter>Library Source Files</Filter>
</ClCompile>
<ClCompile Include="..\crc64.c">
<Filter>Library Source Files</Filter>
</ClCompile>
<ClCompile Include="..\error.c">
<Filter>Library Source Files</Filter>
</ClCompile>
@@ -566,6 +560,9 @@
<ClCompile Include="..\rwlock.c">
<Filter>Library Source Files</Filter>
</ClCompile>
<ClCompile Include="..\safe.c">
<Filter>Library Source Files</Filter>
</ClCompile>
<ClCompile Include="..\serial.c">
<Filter>Library Source Files</Filter>
</ClCompile>

View File

@@ -249,7 +249,6 @@ copy /Y @VCREDIST_PATH@ ..\Build\Release\
<ClInclude Include="..\include\isc\buffer.h" />
<ClInclude Include="..\include\isc\bufferlist.h" />
<ClInclude Include="..\include\isc\commandline.h" />
<ClInclude Include="..\include\isc\crc64.h" />
<ClInclude Include="..\include\isc\entropy.h" />
<ClInclude Include="..\include\isc\error.h" />
<ClInclude Include="..\include\isc\event.h" />
@@ -299,6 +298,7 @@ copy /Y @VCREDIST_PATH@ ..\Build\Release\
<ClInclude Include="..\include\isc\result.h" />
<ClInclude Include="..\include\isc\resultclass.h" />
<ClInclude Include="..\include\isc\rwlock.h" />
<ClInclude Include="..\include\isc\safe.h" />
<ClInclude Include="..\include\isc\serial.h" />
<ClInclude Include="..\include\isc\sha1.h" />
<ClInclude Include="..\include\isc\sha2.h" />
@@ -355,12 +355,10 @@ copy /Y @VCREDIST_PATH@ ..\Build\Release\
<ClCompile Include="..\backtrace.c" />
<ClCompile Include="..\base32.c" />
<ClCompile Include="..\base64.c" />
<ClCompile Include="..\bind9.c" />
<ClCompile Include="..\bitstring.c" />
<ClCompile Include="..\buffer.c" />
<ClCompile Include="..\bufferlist.c" />
<ClCompile Include="..\commandline.c" />
<ClCompile Include="..\crc64.c" />
<ClCompile Include="..\error.c" />
<ClCompile Include="..\event.c" />
<ClCompile Include="..\hash.c" />
@@ -396,6 +394,7 @@ copy /Y @VCREDIST_PATH@ ..\Build\Release\
<ClCompile Include="..\region.c" />
<ClCompile Include="..\result.c" />
<ClCompile Include="..\rwlock.c" />
<ClCompile Include="..\safe.c" />
<ClCompile Include="..\serial.c" />
<ClCompile Include="..\sha1.c" />
<ClCompile Include="..\sha2.c" />

View File

@@ -1395,7 +1395,7 @@ startio_send(isc_socket_t *sock, isc_socketevent_t *dev, int *nbytes,
*nbytes = internal_sendmsg(sock, lpo, msghdr, 0, send_errno);
if (*nbytes < 0) {
if (*nbytes <= 0) {
/*
* I/O has been initiated
* completion will be through the completion port
@@ -2994,13 +2994,14 @@ socket_send(isc_socket_t *sock, isc_socketevent_t *dev, isc_task_t *task,
io_state = startio_send(sock, dev, &cc, &send_errno);
switch (io_state) {
case DOIO_PENDING: /* I/O started. Nothing more to do */
case DOIO_PENDING: /* I/O started. Enqueue completion event. */
case DOIO_SOFT:
/*
* We couldn't send all or part of the request right now, so
* queue it unless ISC_SOCKFLAG_NORETRY is set.
*/
if ((flags & ISC_SOCKFLAG_NORETRY) == 0) {
if ((flags & ISC_SOCKFLAG_NORETRY) == 0 ||
io_state == DOIO_PENDING) {
isc_task_attach(task, &ntask);
dev->attributes |= ISC_SOCKEVENTATTR_ATTACHED;

View File

@@ -153,6 +153,9 @@
#include <errno.h>
#include <string.h>
#ifdef HAVE_INTTYPES_H
#include <inttypes.h> /* uintptr_t */
#endif
#include <lwres/net.h>
#include <lwres/netdb.h>

View File

@@ -276,7 +276,7 @@
./bin/named/unix/Makefile.in MAKE 1999,2000,2001,2004,2007,2009,2011,2012
./bin/named/unix/dlz_dlopen_driver.c C 2011,2012,2013
./bin/named/unix/include/named/os.h C 1999,2000,2001,2002,2004,2005,2007,2008,2009
./bin/named/unix/os.c C 1999,2000,2001,2002,2004,2005,2006,2007,2008,2009,2010,2011,2013
./bin/named/unix/os.c C 1999,2000,2001,2002,2004,2005,2006,2007,2008,2009,2010,2011,2013,2014
./bin/named/update.c C 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013
./bin/named/win32/dlz_dlopen_driver.c C 2011
./bin/named/win32/include/named/ntservice.h C 1999,2000,2001,2002,2003,2004,2007

View File

@@ -8,6 +8,6 @@ DESCRIPTION="(Extended Support Version)"
MAJORVER=9
MINORVER=9
PATCHVER=5
RELEASETYPE=
RELEASEVER=
RELEASETYPE=-P
RELEASEVER=1
EXTENSIONS=