Mark Andrews
28f1cbb007
Add comment about cookie sizes
...
(cherry picked from commit 304df53991 )
2020-11-27 10:20:40 +11:00
Evan Hunt
400171aee8
update all copyright headers to eliminate the typo
2020-09-14 17:00:40 -07:00
Mark Andrews and Ondřej Surý
f2335d1faa
Refactor totext_loc
...
(cherry picked from commit 2ca4d35037 )
2020-08-26 17:26:56 +02:00
Mark Andrews and Ondřej Surý
19b95a5f37
Correctly encode LOC records with non integer negative altitudes.
...
(cherry picked from commit 337cc878fa )
2020-08-26 17:26:56 +02:00
Mark Andrews and Ondřej Surý
b2d67a28ac
Tighten LOC parsing to reject period and/or m as a value.
...
(cherry picked from commit 9225c67835 )
2020-08-26 17:26:56 +02:00
Mark Andrews and Ondřej Surý
2a6d6a7896
Synchronize {to,from}text_loc formatting with 9.16
2020-08-26 17:26:41 +02:00
Mark Andrews and Ondřej Surý
4236972de4
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 )
(cherry picked from commit d8a57d32b1 )
2020-08-18 11:36:06 +02:00
Mark Andrews and Ondřej Surý
80bc4fc1ea
RRSIG: reject records with empty SIG section
...
(cherry picked from commit f6d7b8c20d )
(cherry picked from commit 6b1675a62c )
2020-08-18 11:33:32 +02:00
Mark Andrews
9d4feae236
X25: Check that record is all ASCII digits
...
(cherry picked from commit 7e49689746 )
2020-08-14 00:27:24 +10:00
Mark Andrews
73602718f9
WKS: reject records with zero octets at the end of the bitmap
...
(cherry picked from commit 9d446142d8 )
2020-08-14 00:26:42 +10:00
Mark Andrews
6cabbdae97
TLSA: fix fromwire length checks
...
(cherry picked from commit 3429c35f52 )
2020-08-14 00:25:41 +10:00
Mark Andrews
0bc76daaf0
SIG: reject records with a zero length signature
...
(cherry picked from commit 9b93e5d684 )
2020-08-14 00:25:08 +10:00
Mark Andrews
f266bb2f61
NXT: fix fromwire bitmap checks
...
(cherry picked from commit 73dd849655 )
2020-08-14 00:25:04 +10:00
Mark Andrews
712d3a50df
NSEC3PARAM: check that saltlen is consistent with the rdata length
...
(cherry picked from commit 7dc8e720ff )
2020-08-14 00:24:25 +10:00
Mark Andrews
26f036cccc
NSEC3: reject records with a zero length hash field
...
(cherry picked from commit 031ee9e279 )
2020-08-14 00:23:47 +10:00
Mark Andrews
73341adc34
IPSECKEY: require non-zero length public keys
...
(cherry picked from commit d7f7014803 )
2020-08-14 00:23:07 +10:00
Mark Andrews
1ca878708f
CERT: reject records with a empty certificate field
...
(cherry picked from commit a238f37239 )
2020-08-14 00:22:04 +10:00
Mark Andrews
b424dfaada
Check walking the hip rendezvous servers.
...
Also fixes extraneous white space at end of record when
there are no rendezvous servers.
(cherry picked from commit 78db46d746 )
2020-07-24 15:43:54 +10:00
Evan Hunt
8d52602daf
append "0" to IPv6 addresses ending in "::" when printing YAML
...
such addresses broke some YAML parsers.
(cherry picked from commit a8baf79e33 )
2020-06-25 19:35:31 -07:00
Mark Andrews
c0d34e8b05
Report Extended DNS Error codes
...
(cherry picked from commit b144ae1bb0 )
(cherry picked from commit eed4fab37b )
2020-05-13 12:18:55 +10:00
Evan Hunt
beaca3e8db
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:39:03 -07:00
Evan Hunt
e63223332c
fix spelling errors reported by Fossies.
2020-02-21 14:09:59 -08:00
Mark Andrews
8d0b59a5f5
Silence Coverity FORWARD_NULL warning
...
CID 1458400 (#1 of 1): Dereference after null check
(FORWARD_NULL) 14. var_deref_model: Passing null pointer
nxt->typebits to mem_tobuffer, which dereferences it. [show
details]
219 return (mem_tobuffer(target, nxt->typebits, nxt->len));
2020-02-11 13:02:08 +00:00
Matthijs Mekking and Ondřej Surý
4af46a8574
rdata: delay assignment until after REQUIRE
2020-02-08 06:32:42 -08:00
Ondřej Surý
8a01f18958
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);
}
(cherry picked from commit 66af8713d8 )
2019-10-03 14:21:46 +02:00
Mark Andrews
b67c6fe8bd
Add support for displaying EDNS option LLQ.
...
(cherry picked from commit d98f446d3f )
2019-08-28 17:48:24 +10:00
Witold Kręcicki and Ondřej Surý
71d3823dab
Remove UNSPEC rrtype
...
(cherry picked from commit a8e2ca6f7d )
2019-05-13 10:54:10 +07:00
Mark Andrews
10c53d2873
Recognise EDNS Client Tag and EDNS Server Tag
...
(cherry picked from commit ee7cf180b3 )
2019-05-09 18:24:57 +10:00
Mark Andrews
702cc2dde3
enforce known SSHFP finger print lengths
...
(cherry picked from commit 1722728c80 )
2019-05-09 08:49:19 +10:00
Mark Andrews
8df14d2f89
enforce DS hash exists
...
(cherry picked from commit b274f3fad7 )
2019-04-10 14:44:23 +10:00
Mark Andrews
b35eacbad2
for rkey flags MUST be zero
...
(cherry picked from commit 82d4931440 )
2019-04-09 14:27:11 +10:00
Mark Andrews
bbd7a496be
check flags for no key in fromwire for *KEY
...
(cherry picked from commit 2592e91516 )
2019-04-09 14:27:03 +10:00
Mark Andrews
96b9f0340a
Disallow empty ZONEMD hashes
...
This change is the result of discussions with the authors of
draft-wessels-dns-zone-digest.
(cherry picked from commit 473987d8d9 )
2019-03-22 06:52:32 +11:00
Mark Andrews
30f10bf79e
add brackets for multi-line output
...
(cherry picked from commit 40a770b932 )
2019-03-21 20:26:52 +11:00
Tony Finch and Mark Andrews
660c9af77b
cleanup: use dns_secalg_t and dns_dsdigest_t where appropriate
...
Use them in structs for various rdata types where they are missing.
This doesn't change the structs since we are replacing explicit
uint8_t field types with aliases for uint8_t.
Use dns_dsdigest_t in library function arguments.
(cherry picked from commit 0f219714e1 )
2019-03-08 22:25:27 +11:00
Mark Andrews
495d4153ad
fix AMTRELAY name
...
(cherry picked from commit a9fadafecd )
2019-02-08 14:10:37 +11:00
Evan Hunt and Mark Andrews
37ad2d4de3
Add support for ZONEMD
...
(cherry picked from commit 3183663dd4 )
2019-02-08 08:33:09 +11:00
Mark Andrews
060dd0a372
Add support for ATMRELAY
...
(cherry picked from commit 66922ee7af )
2019-02-08 08:33:08 +11:00
Mark Andrews
58cc1ee718
Ensure base64/base32/hex fields in DNS records that should be non-empty are.
...
(cherry picked from commit 5e8b772ad1 )
2019-01-09 18:52:50 +11:00
Mark Andrews
587c81ac99
create dns_rdatatype_atcname to split records that can appear along side CNAME from DNSSEC; dns_rdatatype_iszonecutauth allowed too many types
...
(cherry picked from commit f4ceb12b69 )
2018-12-14 14:29:46 +11:00
Ondřej Surý and Mark Andrews
2386be289c
Use strlcpy in place where strncpy(s, ...) + s[sizeof(s)-1] = \0; was used
...
(cherry picked from commit 175f06949f )
2018-11-22 08:11:31 +11:00
Ondřej Surý
6aa63d9349
Add extra return failure after INSIST(0) in default branch
...
(cherry picked from commit 29c45200e7 )
(cherry picked from commit 2a26189256 )
2018-11-08 22:03:33 +07:00
Ondřej Surý
d894b2da79
Use larger buffers on snprintf buffer overflow false positives
...
(cherry picked from commit 4eaf927571 )
(cherry picked from commit 65536fb10b )
2018-11-08 22:03:33 +07:00
Ondřej Surý
12a266211e
Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool
...
(cherry picked from commit b2b43fd235 )
(cherry picked from commit fcd1569e2b )
2018-11-08 22:02:58 +07:00
Mark Andrews
e646307f91
compare_nxt compared records with identical next fields case insensitively
...
(cherry picked from commit cf83016682 )
2018-10-30 15:10:55 +11:00
Mark Andrews and Evan Hunt
9674fdcbfb
Add support for EID and NIMLOC
...
(cherry picked from commit fbab100426 )
2018-10-25 15:31:32 -07:00
Mark Andrews
1828ba389d
Add support for ATMA
...
(cherry picked from commit f9ceddd8ca )
2018-10-25 14:17:29 +11:00
Evan Hunt
debb94462f
fix chaosnet address comparison
...
(cherry picked from commit b4dca44ad2 )
2018-09-28 09:01:06 -07:00
Mark Andrews and Evan Hunt
e4fd1abccf
only emit a single space between mac length and the orginal id if the mac length is zero
...
(cherry picked from commit ac1c3aaa27 )
2018-09-27 14:28:59 -07:00
Ondřej Surý
1084b40b44
Replace custom isc_boolean_t with C standard bool type
...
(cherry picked from commit 994e656977 )
(cherry picked from commit 884929400c )
2018-08-10 15:20:57 +02:00