]> 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)
committerOndřej Surý <ondrej@isc.org>
Tue, 4 Feb 2020 10:09:22 +0000 (11:09 +0100)
lib/dns/tests/rbt_serialize_test.c

index edfa711a327a419470b58bf57819b60818328141..188cb31d05c4758b58d9df98b4a77a64faacfc93 100644 (file)
@@ -403,7 +403,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) {