]> granicus.if.org Git - gc/commit
Fix potential multiplication overflow in check_heap_stats (test)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 12 Feb 2016 18:36:08 +0000 (21:36 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 12 Feb 2016 18:36:08 +0000 (21:36 +0300)
commit5200ff4d82bb7e6344f33d104e3de03e4325340b
tree9d20b2afb2fd42585939bd25a412dce7a856e3f6
parent6f690917c5053b3b85a3ada170c68ec1999d3f9a
Fix potential multiplication overflow in check_heap_stats (test)

* tests/test.c (check_heap_stats): Cast n_tests to size_t before
multiplication by 2700000 (instead of implicit cast to size_t of the
result).
tests/test.c