osquery-1/osquery/process/windows
Stefano Bonicatti 65aa1cfa3f Fix several integer conversions in process_ops
Fix UsersTest.test_sanity on Windows.

uid and gid were returned as int (while they normally are unsigned int)
and converted to signed integers in the table row.
This is wrong because beyond uid and gid not being ints,
they are taken from the RID part of the SID which in some cases,
like for a Service SID, it can have a value higher than then maximum
value of an int, so in the end the number shown in table is negative.

Now they are returned as uint32_t and converted as BIGINTs for the table
that uses them.

Fix other functions return values and conversions depending on the meaning of
the value.
On Windows stick to its specific types where possible.

Convert CRLF to LF on some of the files modified.
2019-07-09 12:59:45 +02:00
..
process_ops.cpp Fix several integer conversions in process_ops 2019-07-09 12:59:45 +02:00
process_ops.h Fix several integer conversions in process_ops 2019-07-09 12:59:45 +02:00
process.cpp Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00