diff options
author | hexcoder- <heiko@hexco.de> | 2021-01-04 15:17:39 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-01-04 15:17:39 +0100 |
commit | 5cdbfeef4a84b9dc2e5f8e88ee018c6c6e72fa44 (patch) | |
tree | a31794b40b9b0400aaa15c994f5f77f86fe7123f /custom_mutators/libfuzzer/FuzzerTracePC.h | |
parent | 33a7d6f1688856c050b0ac71ac1df4018e4d531c (diff) | |
download | afl++-5cdbfeef4a84b9dc2e5f8e88ee018c6c6e72fa44.tar.gz |
Revert "code cleanups (from cppcheck)"
This reverts commit 33a7d6f1688856c050b0ac71ac1df4018e4d531c.
Diffstat (limited to 'custom_mutators/libfuzzer/FuzzerTracePC.h')
-rw-r--r-- | custom_mutators/libfuzzer/FuzzerTracePC.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/custom_mutators/libfuzzer/FuzzerTracePC.h b/custom_mutators/libfuzzer/FuzzerTracePC.h index a58fdf8d..4601300c 100644 --- a/custom_mutators/libfuzzer/FuzzerTracePC.h +++ b/custom_mutators/libfuzzer/FuzzerTracePC.h @@ -145,10 +145,10 @@ private: }; Region *Regions; size_t NumRegions; - uint8_t *Start() const { return Regions[0].Start; } - uint8_t *Stop() const { return Regions[NumRegions - 1].Stop; } - size_t Size() const { return Stop() - Start(); } - size_t Idx(uint8_t *P) const { + uint8_t *Start() { return Regions[0].Start; } + uint8_t *Stop() { return Regions[NumRegions - 1].Stop; } + size_t Size() { return Stop() - Start(); } + size_t Idx(uint8_t *P) { assert(P >= Start() && P < Stop()); return P - Start(); } |