8 #ifndef LIBCBOR_MEMORY_UTILS_H 9 #define LIBCBOR_MEMORY_UTILS_H 37 #endif //LIBCBOR_MEMORY_UTILS_H void * _cbor_realloc_multiple(void *pointer, size_t item_size, size_t item_count)
Overflow-proof contiguous array reallocation.
void * _cbor_alloc_multiple(size_t item_size, size_t item_count)
Overflow-proof contiguous array allocation.
bool _cbor_safe_to_multiply(size_t a, size_t b)
Can a and b be multiplied without overflowing size_t?