8 #ifndef BOTAN_UTILS_SAFE_INT_H__ 9 #define BOTAN_UTILS_SAFE_INT_H__ 11 #include <botan/exceptn.h> 24 inline size_t checked_add(
size_t x,
size_t y,
const char* file,
int line)
35 #define BOTAN_CHECKED_ADD(x,y) checked_add(x,y,__FILE__,__LINE__) Integer_Overflow_Detected(const std::string &file, int line)
size_t checked_add(size_t x, size_t y, const char *file, int line)
std::runtime_error Exception
std::string to_string(u64bit n, size_t min_len)