| 4 | #include <string.h> |
| 5 | |
| 6 | bool cif_limits_valid(const cbm_inventory_limits_t *l) { |
| 7 | return l && l->max_files && l->max_files <= INT_MAX && l->max_directories && |
| 8 | l->max_directories <= INT_MAX && l->max_arena_bytes && l->max_ignore_arena_bytes && |
| 9 | l->max_ignore_arena_bytes <= l->max_arena_bytes && l->max_control_file_bytes && |
| 10 | l->max_control_total_bytes && l->max_ignore_patterns && |
| 11 | l->max_ignore_patterns <= INT_MAX && l->max_probe_prefix_bytes && l->max_ignore_work && |
| 12 | l->max_verified_file_reads && l->max_verified_content_bytes; |
| 13 | } |
| 14 | |
| 15 | static bool cif_open_ignore(cif_context *c) { |
| 16 | cbm_inventory_limits_t *l = &c->owner->limits; |
no outgoing calls