| 2626 | } |
| 2627 | |
| 2628 | static void *import_array(cs_index_t *ix, size_t n, size_t size) { |
| 2629 | if (n > SIZE_MAX / size) { |
| 2630 | ix->oom = true; |
| 2631 | return NULL; |
| 2632 | } |
| 2633 | return n ? ix_alloc(ix, n * size) : NULL; |
| 2634 | } |
| 2635 | |
| 2636 | /* One repository-wide pass, never one member-table expansion per import. |
| 2637 | * Include test-only names and extras: the ordinary resolver, not this |
no test coverage detected