Add more integer overflow checks

This commit is contained in:
jsteube
2017-02-22 16:33:23 +01:00
parent 080131c86e
commit 922fea7616
7 changed files with 104 additions and 15 deletions
+3
View File
@@ -13,6 +13,9 @@
#include <time.h>
#include <fcntl.h>
bool overflow_check_int64_add (const u64 a, const u64 b);
bool overflow_check_int64_mul (const u64 a, const u64 b);
bool is_power_of_2 (const u32 v);
u32 get_random_num (const u32 min, const u32 max);