Mark Andrews
9a14141676
avoid macro name collision with system defined macro
...
(cherry picked from commit 81b133d963 )
2018-09-10 09:30:38 +10:00
Witold Kręcicki
0f6dee2a45
Align CMSG buffers to a void* boundary, fixes crash on architectures with strict alignment
...
CHANGES entry
(cherry picked from commit 17212cf996 )
2018-09-07 10:27:20 +02:00
Ondřej Surý
3fbceba0a8
Bail-out early in the for install loops instead of continuing because for masks the error in the middle
...
(cherry picked from commit 25248eb097 )
2018-09-03 13:31:17 +02:00
Witold Krecicki
0f0dfc7f86
Silence some warnings and errors
2018-08-31 17:33:03 -07:00
Ondřej Surý
e66fdc5738
We want to install compatibility shim isc/int.h and isc/boolean.h headers
2018-08-22 09:22:35 +02:00
Ondřej Surý
e897ec66e6
Don't install removed int.h and boolean.h headers
2018-08-14 20:10:14 -04:00
Ondřej Surý
0dad73aafa
Add compatibility isc/boolean.h and isc/int.h headers
2018-08-10 11:17:51 +02:00
Ondřej Surý
884929400c
Replace custom isc_boolean_t with C standard bool type
...
(cherry picked from commit 994e656977 )
2018-08-10 11:17:51 +02:00
Ondřej Surý
d61e6a3111
Replace custom isc_u?intNN_t types with C99 u?intNN_t types
...
(cherry picked from commit cb6a185c69 )
2018-08-09 18:30:20 +02:00
Ondřej Surý
c863a076ae
Replace ISC_PRINT_QUADFORMAT with inttypes.h format constants
...
(cherry picked from commit 64fe6bbaf2 )
2018-08-09 18:30:20 +02:00
Ondřej Surý
38a6d1d44d
Change isc_buffer_reallocate() into a static functions as it is not used outside of isc_buffer_reserve()
...
(cherry picked from commit 20faf4652a )
2018-08-01 08:41:25 +02:00
Evan Hunt
f7f20b1202
improve readability of radix code
...
- use RADIX_V4, RADIX_V6, RADIX_V4_ECS, and RADIX_V6_ECS as array
indices instead of 0 through 3.
- remove some unused macros
2018-06-08 11:55:53 -07:00
Michał Kępień
18824a084b
isc_buffer_*(): if source can be NULL, only call memmove() when length is non-zero
...
Certain isc_buffer_*() functions might call memmove() with the second
argument (source) set to NULL and the third argument (length) set to 0.
While harmless, it triggers an ubsan warning:
runtime error: null pointer passed as argument 2, which is declared to never be null
Modify all memmove() call sites in lib/isc/include/isc/buffer.h and
lib/isc/buffer.c which may potentially use NULL as the second argument
(source) so that memmove() is only called if the third argument (length)
is non-zero.
(cherry picked from commit 6ddbca6f2b )
2018-05-15 09:28:17 +02:00
Ondřej Surý
c35de9b383
Remove $Id markers, Principal Author and Reviewed tags from the full source tree
...
(cherry picked from commit 55a10b7acd )
2018-05-11 14:19:35 +02:00
Evan Hunt
19b5249028
update file headers
2018-03-15 18:40:21 -07:00
Ondřej Surý
557a5c3f78
Update license headers to not include years in copyright in all applicable files
...
(cherry picked from commit 843d389661 )
2018-02-23 10:38:02 +01:00
Tinderbox User
d59b79c94f
update copyright notice / whitespace
2018-01-24 23:46:37 +00:00
Mark Andrews
d4d3eeaa6f
4875. [bug] Address compile failures on older systems. [RT #47015 ]
...
(cherry picked from commit 99178b6329 )
2018-01-24 13:10:39 +11:00
Tinderbox User
c2140b163e
update copyright notice / whitespace
2018-01-17 23:46:24 +00:00
Francis Dupont
5075f3faef
Merged rt46864 (check MD5 amd SHA1 support)
2018-01-17 14:36:06 +01:00
Mark Andrews
14e9925868
add missing entries to .def files [RT #46215 ]
2017-11-27 13:49:39 +11:00
Mark Andrews
9bb32395b2
silence compiler warning [RT #46471 ]
2017-11-23 17:01:40 +11:00
Mark Andrews
e03e455cd5
whitespace
2017-11-08 23:30:46 +11:00
Mark Andrews
a1a5145867
4811. [bug] Revert api changes to use <isc/buffer.h> inline
...
macros. Provide a alternative mechanism to turn
on the use of inline macros when building BIND.
[RT #46520 ]
2017-11-08 23:28:10 +11:00
Mukund Sivaraman
7e1df5182c
[master] isc_rng_randombytes()
...
4807. [cleanup] isc_rng_randombytes() returns a specified number of
bytes from the PRNG; this is now used instead of
calling isc_rng_random() multiple times. [RT #46230 ]
2017-11-06 10:44:37 -08:00
Mark Andrews
ff30290b48
4804. [port] win32: access() does not work on directories as
...
required by POSIX. Supply a alternative in
isc_file_isdirwritable. [RT #46394 ]
2017-11-01 09:29:24 +11:00
Evan Hunt
5c76f3664c
[master] enable ISC_BUFFER_USEINLINE to be overridden
2017-10-25 21:42:56 -07:00
Tinderbox User
429a43b720
update copyright notice / whitespace
2017-10-19 23:46:02 +00:00
Mark Andrews
0fab171196
s/REQUIRE/ISC_REQUIRE/; include <isc/assertions.h> if ISC_REQUIRE is used; include <isc/likely.h> if ISC_{UN}LIKELY is used
2017-10-19 16:39:53 +11:00
Mark Andrews
fe79e2efbf
4774. [bug] <isc/util.h> was incorrectly included in several
...
header files. [RT #46311 ]
2017-10-19 12:26:32 +11:00
Michał Kępień
2361003a88
[master] Doxygen fixes and cleanups
...
4773. [doc] Fixed generating Doxygen documentation for functions
annotated using certain macros. Miscellaneous
Doxygen-related cleanups. [RT #46276 ]
2017-10-17 06:56:46 +02:00
Evan Hunt
c89f1bf1b6
[master] turn off memory fill by default
...
4768. [func] By default, memory is no longer filled with tag values
when it is allocated or freed; this improves
performance but makes debugging of certain memory
issues more difficult. "named -M fill" turns memory
filling back on. (Building "configure
--enable-developer", turns memory fill on by
default again; it can then be disabled with
"named -M nofill".) [RT #45123 ]
2017-10-09 09:55:37 -07:00
Michał Kępień
077f9626c2
[master] Add isc_buffer_printf()
...
4767. [func] Add a new function, isc_buffer_printf(), which can be
used to append a formatted string to the used region of
a buffer. [RT #46201 ]
2017-10-09 11:43:07 +02:00
Evan Hunt
995c41e8f0
[master] further restrict update-policy local
...
4762. [func] "update-policy local" is now restricted to updates
from local addresses. (Previously, other addresses
were allowed so long as updates were signed by the
local session key.) [RT #45492 ]
2017-10-06 15:43:31 -07:00
Tinderbox User
791aa3e9be
update copyright notice / whitespace
2017-09-28 23:45:49 +00:00
Evan Hunt
24172bd2ee
[master] completed and corrected the crypto-random change
...
4724. [func] By default, BIND now uses the random number
functions provided by the crypto library (i.e.,
OpenSSL or a PKCS#11 provider) as a source of
randomness rather than /dev/random. This is
suitable for virtual machine environments
which have limited entropy pools and lack
hardware random number generators.
This can be overridden by specifying another
entropy source via the "random-device" option
in named.conf, or via the -r command line option;
however, for functions requiring full cryptographic
strength, such as DNSSEC key generation, this
cannot be overridden. In particular, the -r
command line option no longer has any effect on
dnssec-keygen.
This can be disabled by building with
"configure --disable-crypto-rand".
[RT #31459 ] [RT #46047 ]
2017-09-28 10:09:22 -07:00
Tinderbox User
e880197f31
update copyright notice / whitespace
2017-09-27 23:45:52 +00:00
Mukund Sivaraman
abb8813a33
Make isc_refcount_current() atomically read the counter value ( #46074 )
2017-09-27 15:09:04 +05:30
Mark Andrews
f9f3f20d2d
4739. [cleanup] Address clang static analysis warnings. [RT #45952 ]
2017-09-27 10:27:09 +10:00
Mukund Sivaraman
fb9712f639
Use stdint.h only when stdatomic.h is in use (stdint.h isn't available everywhere)
2017-09-22 15:14:04 +05:30
Tinderbox User
ffbe6b9537
update copyright notice / whitespace
2017-09-19 23:46:23 +00:00
Mukund Sivaraman
d5707676e4
Don't use memset() to wipe memory ( #45947 )
2017-09-19 16:16:45 +05:30
Mukund Sivaraman
404c9b1c53
Use C11's stdatomic.h instead of isc_atomic where available
2017-09-19 15:43:45 +05:30
Tinderbox User
cb5bc50c91
update copyright notice / whitespace
2017-09-18 23:48:50 +00:00
Francis Dupont
9c829f4f96
Merged rt31459d (openssl random)
2017-09-16 13:53:29 +02:00
Tinderbox User
33987cb5fd
update copyright notice / whitespace
2017-09-13 23:48:32 +00:00
Evan Hunt
114f95089c
[master] cleanup strcat/strcpy
...
4722. [cleanup] Clean up uses of strcpy() and strcat() in favor of
strlcpy() and strlcat() for safety. [RT #45981 ]
2017-09-13 00:14:37 -07:00
Evan Hunt
586e65ea5c
[rt31459d] rebased rt31459c
2017-09-12 19:05:46 -07:00
Tinderbox User
1e33899f86
update copyright notice / whitespace
2017-09-12 23:46:14 +00:00
Evan Hunt
7ffd6934ba
[master] install include files
2017-09-12 10:38:22 -07:00