| 188 | char *reftable_strdup(const char *str); |
| 189 | |
| 190 | static inline int reftable_alloc_size(size_t nelem, size_t elsize, size_t *out) |
| 191 | { |
| 192 | if (nelem && elsize > SIZE_MAX / nelem) |
| 193 | return -1; |
| 194 | *out = nelem * elsize; |
| 195 | return 0; |
| 196 | } |
| 197 | |
| 198 | #define REFTABLE_ALLOC_ARRAY(x, alloc) do { \ |
| 199 | size_t alloc_size; \ |
no outgoing calls
no test coverage detected