OSDN Git Service

[libFuzzer] Properly use unsigned for Process ID.
authorMarcos Pividori <mpividori@google.com>
Tue, 13 Dec 2016 17:45:44 +0000 (17:45 +0000)
committerMarcos Pividori <mpividori@google.com>
Tue, 13 Dec 2016 17:45:44 +0000 (17:45 +0000)
commit0ca1e73f19d1401848f91ea877115050ba179405
tree341908b659e375a17b17fc00ee0f5a44c8496a2d
parent9fb21ea4f555ff1a79fe80cf63afd2a2e8479efd
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289558 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Fuzzer/FuzzerLoop.cpp
lib/Fuzzer/FuzzerUtil.h
lib/Fuzzer/FuzzerUtilPosix.cpp
lib/Fuzzer/FuzzerUtilWindows.cpp