diff options
author | Marcos Pividori <mpividori@google.com> | 2016-12-13 17:45:44 +0000 |
---|---|---|
committer | Marcos Pividori <mpividori@google.com> | 2016-12-13 17:45:44 +0000 |
commit | 463f8bdd0b85ea19177ff5e22d2fca34859b2234 (patch) | |
tree | a30dd1d19702a2442deb0a4b63b149b8a86e44fe /llvm/lib/Fuzzer/FuzzerUtil.h | |
parent | c59b692c85e0b75ffb3168c2dbec2a0280886c9b (diff) | |
download | bcm5719-llvm-463f8bdd0b85ea19177ff5e22d2fca34859b2234.tar.gz bcm5719-llvm-463f8bdd0b85ea19177ff5e22d2fca34859b2234.zip |
[libFuzzer] Properly use unsigned for Process ID.
Use unsigned for PID instead of signed int. GetCurrentProcessId() returns
an unsigned (DWORD) so we must be sure we can deal with all possible values.
I use a long unsigned to be sure it can hold a 32 bit unsigned (DWORD).
Differential Revision: https://reviews.llvm.org/D27281
llvm-svn: 289558
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerUtil.h')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerUtil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerUtil.h b/llvm/lib/Fuzzer/FuzzerUtil.h index c237379b3ac..cac93cc141b 100644 --- a/llvm/lib/Fuzzer/FuzzerUtil.h +++ b/llvm/lib/Fuzzer/FuzzerUtil.h @@ -47,7 +47,7 @@ void SetSignalHandler(const FuzzingOptions& Options); void SleepSeconds(int Seconds); -int GetPid(); +unsigned long GetPid(); size_t GetPeakRSSMb(); |