From 83dde348b483e3050e5dfce2ed811fddb0a27d8b Mon Sep 17 00:00:00 2001 From: Mehdi Khairy Date: Sat, 19 Jan 2019 03:25:35 +0100 Subject: [PATCH] Fuzzer 074 support integer multiple of nbBlocks Signed-off-by: Mehdi Khairy --- fuzzers/074-dump_all/run_fuzzer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzzers/074-dump_all/run_fuzzer.py b/fuzzers/074-dump_all/run_fuzzer.py index cfd43cd3..41ced3d1 100644 --- a/fuzzers/074-dump_all/run_fuzzer.py +++ b/fuzzers/074-dump_all/run_fuzzer.py @@ -53,7 +53,7 @@ def run_pool(itemcount, nbBlocks, blocksize, nbParBlock, workFunc): # We handle the case of not integer multiple of pips intitemcount = blocksize * nbBlocks lastRun = False - modBlocks = itemcount % nbBlocks + modBlocks = itemcount - intitemcount if modBlocks != 0: lastRun = True nbBlocks = nbBlocks + 1