diff options
author | 2016-07-06 15:53:01 +0000 | |
---|---|---|
committer | 2016-07-06 15:53:01 +0000 | |
commit | ade4dc82a7d10bf06baa32184f39c3f5b1e1ac9e (patch) | |
tree | f3c055307e431b79d541118d066f2743ff46177e /lib | |
parent | Move Hop-by-Hop processing into its own function ip6_hbhchcheck(). (diff) | |
download | wireguard-openbsd-ade4dc82a7d10bf06baa32184f39c3f5b1e1ac9e.tar.xz wireguard-openbsd-ade4dc82a7d10bf06baa32184f39c3f5b1e1ac9e.zip |
fix several places where calculating ticks could overflow.
it's not enough to assign to an unsigned type because if the arithmetic
overflows the compiler may decide to do anything. so change all the
long long casts to uint64_t so that we start with the right type.
reported by Tim Newsham of NCC.
ok deraadt
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions