diff options
author | wm4 <wm4@nowhere> | 2014-05-22 20:55:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-22 20:59:31 +0200 |
commit | d31b594f77bb55bdb30dd0fd763e18305aa372ee (patch) | |
tree | c46a626a2c347dbf51943c8852dd565d62512253 /Copyright | |
parent | 7b7e15a460f2a24ba8c42f6caa71f1ca0ad25499 (diff) | |
download | mpv-d31b594f77bb55bdb30dd0fd763e18305aa372ee.tar.bz2 mpv-d31b594f77bb55bdb30dd0fd763e18305aa372ee.tar.xz |
timer: fix (usually impossible) timespec.tv_sec overflow
This usually can't happen, because even if time_us (first input value)
is INT64_MAX, the value added to tv_sec will be about 2^43, and tv_sec
will be <2^31, far below a possible overflow in 64 bits. But should
time_t be 32 bits (32 bit Linux/Windows?), an overflow could happen.
Diffstat (limited to 'Copyright')
0 files changed, 0 insertions, 0 deletions