mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Merge branch '3931-gcc-12-static-analyzer-warning-use-of-uninitialized-value-svcb-svclen-in-rdata-c' into 'main'
Resolve "GCC 12 static analyzer: warning: use of uninitialized value 'svcb.svclen' in rdata.c" Closes #3931 See merge request isc-projects/bind9!7657
This commit is contained in:
@@ -806,7 +806,7 @@ dns_rdata_checksvcb(const dns_name_t *owner, const dns_rdata_t *rdata);
|
|||||||
*
|
*
|
||||||
* Requires:
|
* Requires:
|
||||||
*\li 'owner' is a valid name.
|
*\li 'owner' is a valid name.
|
||||||
*\li 'rdata' is a valid, non-empty rdata.
|
*\li 'rdata' is a valid, non-empty SVCB rdata.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
*\li #ISC_R_SUCCESS -- success, the data is valid
|
*\li #ISC_R_SUCCESS -- success, the data is valid
|
||||||
|
@@ -2435,6 +2435,7 @@ dns_rdata_checksvcb(const dns_name_t *owner, const dns_rdata_t *rdata) {
|
|||||||
|
|
||||||
REQUIRE(owner != NULL);
|
REQUIRE(owner != NULL);
|
||||||
REQUIRE(rdata != NULL);
|
REQUIRE(rdata != NULL);
|
||||||
|
REQUIRE(rdata->type == dns_rdatatype_svcb);
|
||||||
REQUIRE(DNS_RDATA_VALIDFLAGS(rdata));
|
REQUIRE(DNS_RDATA_VALIDFLAGS(rdata));
|
||||||
|
|
||||||
result = dns_rdata_tostruct(rdata, &svcb, NULL);
|
result = dns_rdata_tostruct(rdata, &svcb, NULL);
|
||||||
|
Reference in New Issue
Block a user