Mark Andrews
d8a57d32b1
A6: return FORMERR in fromwire if bits are non zero.
...
oss_fuzz: Issue 24864: bind9:dns_rdata_fromwire_text_fuzzer: Overwrites-const-input in dns_rdata_fromwire_text_fuzzer
(cherry picked from commit 8452404bd7 )
2020-08-18 11:11:40 +02:00
Mark Andrews
ee10a93cbc
WKS: reject records with zero octets at the end of the bitmap
...
(cherry picked from commit 9d446142d8 )
2020-08-14 00:38:45 +10:00
Evan Hunt
f171017570
append "0" to IPv6 addresses ending in "::" when printing YAML
...
such addresses broke some YAML parsers.
(cherry picked from commit a8baf79e33 )
2020-06-25 18:57:06 -07:00
Evan Hunt
a8184b35cd
remove or comment empty conditional branches
...
some empty conditional branches which contained a semicolon were
"fixed" by clang-format to contain nothing. add comments to prevent this.
(cherry picked from commit 735be3b816 )
2020-03-17 15:33:23 -07:00
Evan Hunt
11a0d771f9
fix spelling errors reported by Fossies.
...
(cherry picked from commit ba0313e649 )
2020-02-21 07:05:31 +00:00
Ondřej Surý
829b461c54
Merge branch '46-enforce-clang-format-rules' into 'master'
...
Start enforcing the clang-format rules on changed files
Closes #46
See merge request isc-projects/bind9!3063
(cherry picked from commit a04cdde45d )
d2b5853b Start enforcing the clang-format rules on changed files
618947c6 Switch AlwaysBreakAfterReturnType from TopLevelDefinitions to All
654927c8 Add separate .clang-format files for headers
5777c44a Reformat using the new rules
60d29f69 Don't enforce copyrights on .clang-format
2020-02-14 08:45:59 +00:00
Ondřej Surý
cdef20bb66
Merge branch 'each-style-tweak' into 'master'
...
adjust clang-format options to get closer to ISC style
See merge request isc-projects/bind9!3061
(cherry picked from commit d3b49b6675 )
0255a974 revise .clang-format and add a C formatting script in util
e851ed0b apply the modified style
2020-02-14 05:35:29 +00:00
Ondřej Surý
2e55baddd8
Merge branch '46-add-curly-braces' into 'master'
...
Add curly braces using uncrustify and then reformat with clang-format back
Closes #46
See merge request isc-projects/bind9!3057
(cherry picked from commit 67b68e06ad )
36c6105e Use coccinelle to add braces to nested single line statement
d14bb713 Add copy of run-clang-tidy that can fixup the filepaths
056e133c Use clang-tidy to add curly braces around one-line statements
2020-02-13 21:28:35 +00:00
Ondřej Surý
c931d8e417
Merge branch '46-just-use-clang-format-to-reformat-sources' into 'master'
...
Reformat source code with clang-format
Closes #46
See merge request isc-projects/bind9!2156
(cherry picked from commit 7099e79a9b )
4c3b063e Import Linux kernel .clang-format with small modifications
f50b1e06 Use clang-format to reformat the source files
11341c76 Update the definition files for Windows
df6c1f76 Remove tkey_test (which is no-op anyway)
2020-02-12 14:51:18 +00:00
Ondřej Surý
66af8713d8
lib/dns/rdata/*/*.c: Silence false positive nullPointerRedundantCheck warning from Cppcheck
...
Cppcheck gets confused by:
void bar(void *arg) {
foo *data = arg;
REQUIRE(source != NULL);
REQUIRE(data->member != NULL);
}
and for consistency the DbC check needs to be changed to
void bar(void *arg) {
foo *data = arg;
REQUIRE(data != NULL);
REQUIRE(data->member != NULL);
}
2019-10-03 09:04:26 +02:00
Mark Andrews
d8798098e8
support printing AAAA in expanded form
2019-05-06 21:50:38 -07:00
Mark Andrews
40a770b932
add brackets for multi-line output
2019-03-21 19:52:27 +11:00
Mark Andrews
5e8b772ad1
Ensure base64/base32/hex fields in DNS records that should be non-empty are.
2019-01-09 18:04:21 +11:00
Ondřej Surý
2f3eee5a4f
isc_mutex_init returns 'void'
2018-11-22 11:51:49 +00:00
Ondřej Surý
175f06949f
Use strlcpy in place where strncpy(s, ...) + s[sizeof(s)-1] = \0; was used
2018-11-19 07:58:48 +01:00
Ondřej Surý
29c45200e7
Add extra return failure after INSIST(0) in default branch
2018-11-08 12:22:17 +07:00
Ondřej Surý
4eaf927571
Use larger buffers on snprintf buffer overflow false positives
2018-11-08 12:21:53 +07:00
Mark Andrews
fbab100426
Add support for EID and NIMLOC
2018-10-25 15:20:33 -07:00
Mark Andrews
f9ceddd8ca
Add support for ATMA
2018-10-25 13:21:49 +11:00
Ondřej Surý
994e656977
Replace custom isc_boolean_t with C standard bool type
2018-08-08 09:37:30 +02:00
Ondřej Surý
cb6a185c69
Replace custom isc_u?intNN_t types with C99 u?intNN_t types
2018-08-08 09:37:28 +02:00
Ondřej Surý
55a10b7acd
Remove $Id markers, Principal Author and Reviewed tags from the full source tree
2018-05-11 13:17:46 +02:00
Michał Kępień
4f96cebce3
Replace getquad() with inet_pton()
...
getquad() was implemented back in 2001 to warn about IPv4 addresses in
non-dotted-quad form being used. As change 4900 (GL #13 ) removed all
uses of inet_aton(), which allowed such forms, with inet_pton(), which
does not allow them, there is no point in keeping getquad() around as it
now only prints an extra warning when the parser comes across an IP
address in a form which is not acceptable anyway. Replace all uses of
getquad() with inet_pton(AF_INET, ...).
2018-03-06 09:49:30 +01:00
Mark Andrews
a4186b1867
redefine CHECK so cppcheck see the definition
2018-02-24 17:50:27 -08:00
Ondřej Surý
843d389661
Update license headers to not include years in copyright in all applicable files
2018-02-23 10:12:02 +01:00
Mark Andrews
78ad353491
preserve unsigned property
2018-02-16 10:20:38 +11:00
Tinderbox User
ca0ae70046
update copyright notice / whitespace
2017-10-03 23:45:48 +00:00
Mark Andrews
a009d03a1a
4748. [cleanup] Sprintf to snprintf coversions. [RT #46132 ]
2017-10-03 14:54:19 +11:00
Tinderbox User
ffbe6b9537
update copyright notice / whitespace
2017-09-19 23:46:23 +00:00
Mukund Sivaraman
98998f3ddd
Fix out of bounds access in DHCID totext() method ( #46001 )
2017-09-19 19:30:28 +05:30
Mark Andrews
f77ee20a6c
4474. [bug] win32: call WSAStartup in fromtext_in_wks so that
...
getprotobyname and getservbyname work. [RT #43197 ]
(cherry picked from commit 82a50a619a )
2016-10-05 12:29:23 +11:00
Tinderbox User
2799701c32
update copyright notice / whitespace
2016-08-12 23:45:28 +00:00
Mark Andrews
bb900e62bf
4436. [func] Return TLSA records as additional data for MX and SRV
...
lookups. [RT #42894 ]
2016-08-12 10:03:23 +10:00
Mark Andrews
0c27b3fe77
4401. [misc] Change LICENSE to MPL 2.0.
2016-06-27 14:56:38 +10:00
Tinderbox User
9f76893bbc
update copyright notice / whitespace
2016-06-20 23:45:20 +00:00
Witold Krecicki
3f06b888ae
4385. [func] Add support for allow-query and allow-transfer ACLs
...
to catalog zones. [RT #42578 ]
2016-06-20 13:39:44 +02:00
Mark Andrews
1b3d211802
4285. [security] Specific APL data could trigger a INSIST.
...
(CVE-2015-8704) [RT #41396 ]
2015-12-31 13:43:21 +11:00
Mark Andrews
e0a30050c8
4214. [protocol] Add support for TALINK. [RT #40544 ]
2015-09-18 07:43:43 +10:00
Mark Andrews
dc3912f3ca
4190. [protocol] Accept Active Diretory gc._msdcs.<forest> name as
...
valid with check-names. <forest> still needs to be
LDH. [RT #40399 ]
2015-08-22 15:27:33 +10:00
Tinderbox User
503ffdad3b
update copyright notice / whitespace
2015-08-17 23:45:35 +00:00
Mukund Sivaraman
b0ba1a6059
Use mnemonics for RR class and type comparisons ( #40297 )
2015-08-17 12:23:35 +05:30
Tinderbox User
288c18263f
update copyright notice / whitespace
2015-08-14 23:45:27 +00:00
Mukund Sivaraman
474921d733
Fix assertion failure in parsing NSAP records from text
2015-08-14 13:11:26 +05:30
Tinderbox User
431a83fb29
update copyright notice
2014-01-09 23:46:35 +00:00
Evan Hunt
e851ea8260
[master] replace memcpy() with memmove().
...
3698. [cleanup] Replaced all uses of memcpy() with memmove().
[RT #35120 ]
2014-01-08 16:39:05 -08:00
Tinderbox User
3a34908497
update copyright notice
2013-10-25 23:46:32 +00:00
Mark Andrews
34416a7954
3663. [bug] Address bugs in dns_rdata_fromstruct and
...
dns_rdata_tostruct for WKS and ISDN types. [RT #34910 ]
2013-10-25 13:06:09 +11:00
Tinderbox User
54c820164a
update copyright notice
2013-01-15 23:45:50 +00:00
Mark Andrews
70b0f9e179
silence compiler warning: Value stored to '?' is never used
2013-01-16 07:13:08 +11:00
Tinderbox User
5fa46bc916
update copyright notice
2012-03-10 23:45:53 +00:00