Files
frameworks_base/cmds
Roman Kiryanov 9872a4d42b Fix integer overflow in make_timestamp_ns_locked
timespec::tv_sec is time_t which is 32bit wide on
32bit platforms. Multipliyng 32bit integers (tv_sec and
1000) produces another 32bit integer which overflows
in this case and turns into a negative value which
confuses the logic downstream. This change makes the
multiplication to be 64bit which prevent the overflow.

Bug: 139320584
Bug: 139538727
Test: GtsIncidentManagerTestCases
Change-Id: Ie956074961c7c1f08e2519920f7ce69d5c9e12d3
Signed-off-by: Roman Kiryanov <rkir@google.com>
(cherry picked from commit e9db937f40)
2019-08-22 22:46:54 +00:00
..
2018-05-04 23:17:00 -07:00
2018-05-14 16:47:02 -07:00
2019-06-04 06:05:31 +00:00
2019-02-26 13:22:24 -08:00