commit | ca405017d5e776a2e3d9291236e62d2e09489dd2 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@redhat.com> | Mon Apr 30 12:22:17 2018 +0200 |
committer | GitHub <noreply@github.com> | Mon Apr 30 12:22:17 2018 +0200 |
tree | 54f7f13f52fde86c9ec8d89dd9a13c18a6ca3e72 | |
parent | 5ff3a161c8a6b525c5e5b3e36e9c43f5a95bda60 [diff] |
bpo-27645, sqlite: Fix integer overflow on sleep (#6594) Use the _PyTime_t type and round away from zero (ROUND_UP, _PyTime_ROUND_TIMEOUT) the sleep duration, when converting a Python object to seconds and then to milliseconds. Raise an OverflowError in case of overflow. Previously the (int)double conversion rounded towards zero (ROUND_DOWN).