]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Annotate false positive tainted_data (CID #1503921) (#4711)
authorJames Jones <jejones3141@gmail.com>
Thu, 1 Sep 2022 16:29:43 +0000 (11:29 -0500)
committerGitHub <noreply@github.com>
Thu, 1 Sep 2022 16:29:43 +0000 (12:29 -0400)
By construction, 0 <= offset <= 0x3fff, so it is in range as
a subscript for fr_dns_marker.

src/protocols/dns/base.c

index bc28d24be84b6844311b5a9634bf1546e0574a4a..56cc0091ea0f4b963072cd08ff8d5e3d50d6d22a 100644 (file)
@@ -248,6 +248,7 @@ bool fr_dns_packet_ok(uint8_t const *packet, size_t packet_len, bool query, fr_d
                                        return false;
                                }
 
+                               /* coverity[tainted_data] */
                                if (!fr_dns_marker[offset]) {
                                        DECODE_FAIL(POINTER_TO_NON_LABEL);
                                        return false;