| 834 | } |
| 835 | |
| 836 | static bool ap_parameter_array(yyjson_val *value) { |
| 837 | if (!yyjson_is_arr(value) || yyjson_arr_size(value) > AP_PARAMETER_LIMIT) |
| 838 | return false; |
| 839 | size_t index, maximum; |
| 840 | yyjson_val *item; |
| 841 | yyjson_arr_foreach(value, index, maximum, |
| 842 | item) if (!ap_bounded_string(item, AP_VALUE_BYTES)) return false; |
| 843 | return true; |
| 844 | } |
| 845 | |
| 846 | /* Optional copies must leave room for the base graph and its serialized copy. |
| 847 | * Charge mutable values plus worst-case JSON escaping before allocation. The |
no test coverage detected