| 3 | #include <string.h> |
| 4 | |
| 5 | static bool gi_limits_valid(const cbm_ignore_checked_limits_t *limits) { |
| 6 | return limits && limits->max_bytes && limits->max_work && limits->max_patterns && |
| 7 | limits->max_patterns <= INT_MAX && limits->max_arena_bytes && limits->max_depth && |
| 8 | limits->max_depth <= CBM_IGNORE_CHECKED_DEPTH_MAX; |
| 9 | } |
| 10 | |
| 11 | static cbm_ignore_checked_status_t gi_open(const cbm_ignore_checked_limits_t *limits, |
| 12 | cbm_ignore_checked_t **out, |