| 58 | } |
| 59 | |
| 60 | static void *cv_array(cbm_coverage_map_t *map, int count, size_t size) { |
| 61 | if (count <= 0 || (size_t)count > SIZE_MAX / size) { |
| 62 | return NULL; |
| 63 | } |
| 64 | return cbm_arena_calloc(&map->arena, (size_t)count * size); |
| 65 | } |
| 66 | |
| 67 | /* Records were counted before copying. Keep empty TSV fields and trim only a |
| 68 | * record-ending CR, as emitted by the Python builder on Windows. */ |
no test coverage detected