diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-10-09 16:00:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-10-09 16:00:08 +0000 |
commit | 5c38636e40215dcc90f390ee647e46409b3273f2 (patch) | |
tree | 48e0a0a6c670a40df8f73e4dfe06b294d0f8a68e /usr.bin/sed/compile.c | |
parent | 4a28c84a91ac850d319f31b2f3e46643aca3a368 (diff) |
Change sb_timeo to unsigned, so that even if some calculation (ie. n * HZ)
becomes a very large number it will not wrap the short into a negative
number and screw up timeouts. It will simply become a max of 65535. Since
this happens when HZ is cranked to a high number, this will still only take
n seconds, or less. Safer than crashing.
Prompted by PR 5511
ok guenther
Diffstat (limited to 'usr.bin/sed/compile.c')
0 files changed, 0 insertions, 0 deletions