aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream/dvbin.h
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2014-02-02 16:52:20 +0100
committerGravatar wm4 <wm4@nowhere>2014-02-10 00:04:39 +0100
commitdd264ebe9d00c8cb22ed4d931d31293ff5b3cece (patch)
tree878b4a7e22a1a21a546231b9d6c2354a9ccc4148 /stream/dvbin.h
parent7aa3726c9acce93e10e69053f96a4338a1ece0b7 (diff)
threads: avoid timeout calculation overflow
It's quite possible to overflow the calculation by setting the timeout to high values. Limit it to INT_MAX, which should be safe. The issue is mainly the secs variable. timespec.tv_sec will normally be 64 bit on sane systems, and we assume it can't overflow by adding INT_MAX to it.
Diffstat (limited to 'stream/dvbin.h')
0 files changed, 0 insertions, 0 deletions