summaryrefslogtreecommitdiff
path: root/tests/lib/test_heavy_thread.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-02-18 10:45:46 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-02-22 11:11:31 -0500
commit46da676a62bbf87dc35d46c86c073869b41fae3d (patch)
tree738388bfce7c18e7963f8a006346787dc4680afe /tests/lib/test_heavy_thread.c
parent4d7aae38ab5f88421dea48a6f6541f86ce4cd954 (diff)
bfdd: Fix overflow possibility with time statements
If time ( a uint64_t ) is large enough doing division and subtraction can still lead to situations where the resulting number is greater than a uint32_t. Just use uint32_t as an intermediate storage spot. This is unlikely to every occur in a time frame I could possibly care about but makes Coverity happy. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/lib/test_heavy_thread.c')
0 files changed, 0 insertions, 0 deletions