| 1791 | #endif |
| 1792 | |
| 1793 | static void *gf_batch_array(cbm_git_facts_t *facts, size_t count, size_t size, |
| 1794 | cbm_git_facts_error_t *error) { |
| 1795 | if (count > SIZE_MAX / size) { |
| 1796 | gf_limit(facts, error, "Git batch array size overflow"); |
| 1797 | return NULL; |
| 1798 | } |
| 1799 | return gf_allocate(facts, &facts->arena, count * size, error); |
| 1800 | } |
| 1801 | |
| 1802 | static bool gf_batch_inventory(gf_batch_work_t *work, cbm_git_facts_error_t *error) { |
| 1803 | cbm_git_facts_t *facts = work->facts; |
no test coverage detected