Fix an integer overflow bug in the tv_mdiff range check
commit2e51608a8b7d883f5e187ccc83ed871e248442c2
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Wed, 29 Jun 2016 02:53:50 +0000 (29 12:53 +1000)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Wed, 29 Jun 2016 02:53:50 +0000 (29 12:53 +1000)
tree512f9157470479a11ce31a8c0c3f1e0fe5dd3f67
parentf42dbc4e263d3c5f9021d062c5ea0d3cfa29d47b
Fix an integer overflow bug in the tv_mdiff range check

The temporary second used for rounding can cause overflow,
depending on the order the compiler performs the operations.
src/common/util.c