Files
bind9/lib/dns
Mark Andrews b0d32302b2 Remove unnecessary operations
Decrementing optlen immediately before calling continue is unneccesary
and inconsistent with the rest of dns_message_pseudosectiontoyaml
and dns_message_pseudosectiontotext.  Coverity was also reporting
an impossible false positive overflow of optlen (CID 499061).

    4176                        } else if (optcode == DNS_OPT_CLIENT_TAG) {
    4177                                uint16_t id;
    4178                                ADD_STRING(target, "; CLIENT-TAG:");
    4179                                if (optlen == 2U) {
    4180                                        id = isc_buffer_getuint16(&optbuf);
    4181                                        snprintf(buf, sizeof(buf), " %u\n", id);
    4182                                        ADD_STRING(target, buf);

    CID 499061: (#1 of 1): Overflowed constant (INTEGER_OVERFLOW)
    overflow_const: Expression optlen, which is equal to 65534, underflows
    the type that receives it, an unsigned integer 16 bits wide.
    4183                                        optlen -= 2;
    4184                                        POST(optlen);
    4185                                        continue;
    4186                                }
    4187                        } else if (optcode == DNS_OPT_SERVER_TAG) {

(cherry picked from commit 47338c2c87)
2024-08-02 06:43:03 +00:00
..
2022-11-29 09:14:07 +01:00
2023-05-26 02:07:02 -07:00
2024-01-17 10:05:20 +01:00
2024-02-01 21:47:29 +01:00
2023-02-09 10:07:39 -08:00
2022-11-29 09:14:07 +01:00
2022-11-29 09:14:07 +01:00
2024-04-18 15:00:07 +00:00
2022-11-29 09:14:07 +01:00
2024-05-07 01:06:14 +00:00
2024-08-01 03:48:12 +00:00
2024-08-02 06:43:03 +00:00
2024-01-05 11:50:23 +01:00
2022-11-29 09:14:07 +01:00
2022-11-29 09:14:07 +01:00
2024-04-23 12:48:56 +00:00
2023-12-06 09:01:05 +11:00
2024-01-05 11:19:58 +01:00
2022-11-29 09:14:07 +01:00