| 1257 | } |
| 1258 | |
| 1259 | static bool ovp_parse(const void *bytes, size_t length, cbm_coverage_map_t **out) { |
| 1260 | const cbm_coverage_parse_limits_t limits = { |
| 1261 | .max_input_bytes = 8U * 1024U * 1024U, .max_items = 100000, |
| 1262 | .max_alloc_bytes = 32U * 1024U * 1024U, .max_ids = 8192}; |
| 1263 | cbm_coverage_parse_status_t status = cbm_coverage_map_parse_v2( |
| 1264 | bytes, length, ov_empty_tests, sizeof(ov_empty_tests) - 1, |
| 1265 | &limits, NULL, NULL, out); |
| 1266 | return status == CBM_COVERAGE_PARSE_OK && *out; |
| 1267 | } |
| 1268 | |
| 1269 | static bool ovp_map_control(const cbm_coverage_map_t *map, const void *bytes, |
| 1270 | size_t length, int count, const char *image) { |
no test coverage detected