mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 08:12:04 -04:00
Suppress cppcheck false positive nullPointerArithmeticRedundantCheck
This commit is contained in:
parent
05ae2e48ab
commit
c00def343f
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue