mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
Suppress cppcheck false positive nullPointerArithmeticRedundantCheck
This commit is contained in:
parent
05ae2e48ab
commit
c00def343f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user