bind9/bin
Mark Andrews e7ef0a60ab Prevent overflow of size
If size overflows we will have an infinite loop.  In practice
this will not happen unless we have made a coding error.  Add
an INSIST to detect this condition.

    181        while (!done) {
    182                isc_buffer_allocate(mctx, &b, size);
    183                result = dns_rdata_totext(rdata, NULL, b);
    184                if (result == ISC_R_SUCCESS) {
    185                        printf("%.*s\n", (int)isc_buffer_usedlength(b),
    186                               (char *)isc_buffer_base(b));
    187                        done = true;
    188                } else if (result != ISC_R_NOSPACE) {
    189                        check_result(result, "dns_rdata_totext");
    190                }
    191                isc_buffer_free(&b);

    CID 498025: (#1 of 1): Overflowed constant (INTEGER_OVERFLOW)
    overflow_const: Expression size, which is equal to 0, overflows the type that
    receives it, an unsigned integer 32 bits wide.
    192                size *= 2;
    193        }
2024-08-03 03:39:26 +00:00
..
check switch default zone database from "qp" to "qpzone" 2024-03-08 15:36:56 -08:00
confgen Remove isc__tls_setfatalmode() function and the calls 2024-02-08 08:01:58 +01:00
delv Implement asynchronous view matching for SIG(0)-signed queries 2024-06-10 17:33:10 +02:00
dig Prevent overflow of size 2024-08-03 03:39:26 +00:00
dnssec Document new -J option for dnssec-signzone and dnssec-verify 2024-07-08 14:53:01 +02:00
named Rename dns_zone_forcereload() to dns_zone_forcexfr() 2024-08-01 11:01:17 +00:00
nsupdate complete removal of isc_loop_current() 2024-04-02 10:35:56 +02:00
plugins Remove 'inst != NULL' from cleanup check in plugin_register 2023-04-04 23:51:22 +00:00
rndc Implement rndc retransfer -force 2024-08-01 10:43:47 +00:00
tests Reset 'ret' to zero at start of tests 2024-08-02 01:23:17 +00:00
tools Emit and read correct DoT and DoH dnstap entries 2024-04-26 16:12:29 +03:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00