non broken version of cJSON_GetArrayItem */
| 260 | |
| 261 | /* non broken version of cJSON_GetArrayItem */ |
| 262 | static cJSON *get_array_item(const cJSON *array, size_t item) |
| 263 | { |
| 264 | cJSON *child = array ? array->child : NULL; |
| 265 | while ((child != NULL) && (item > 0)) |
| 266 | { |
| 267 | item--; |
| 268 | child = child->next; |
| 269 | } |
| 270 | |
| 271 | return child; |
| 272 | } |
| 273 | |
| 274 | static cJSON_bool decode_array_index_from_pointer(const unsigned char * const pointer, size_t * const index) |
| 275 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…