]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Suppress cppcheck false positive nullPointerArithmeticRedundantCheck
authorOndřej Surý <ondrej@isc.org>
Sat, 1 Feb 2020 18:35:36 +0000 (19:35 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 5 Feb 2020 08:08:35 +0000 (09:08 +0100)
(cherry picked from commit c00def343f2bd96d9d87b37b53dc7e98a8c91b65)

lib/dns/tests/rbt_serialize_test.c

index e150538be0f37b0371d42e294120625068171bfc..315527ecffbf0fd11ceff13a7144d8af8f7fc105 100644 (file)
@@ -406,7 +406,9 @@ deserialize_corrupt_test(void **state) {
                close(fd);
 
                /* Randomly fuzz a portion of the memory */
+               /* cppcheck-suppress nullPointerArithmeticRedundantCheck */
                p = base + (isc_random_uniform(filesize));
+               /* cppcheck-suppress nullPointerArithmeticRedundantCheck */
                q = base + filesize;
                q -= (isc_random_uniform(q - p));
                while (p++ < q) {