Hi,
Please find the latest report on new defect(s) introduced to sbabic/swupdate found with Coverity Scan.
** CID 644651: Incorrect expression (COPY_PASTE_ERROR)
/suricatta/server_hawkbit.c: 1109 in json_extract_artifact()
_____________________________________________________________________________________________
*** CID 644651: Incorrect expression (COPY_PASTE_ERROR)
/suricatta/server_hawkbit.c: 1109 in json_extract_artifact()
1103
1104 for (int json_data_artifact_count = 0;
1105 json_data_artifact_count < json_data_artifact_max;
1106 json_data_artifact_count++) {
1107 json_data_artifact_item = array_list_get_idx(
1108 json_data_artifact_array, json_data_artifact_count);
>>> CID 644651: Incorrect expression (COPY_PASTE_ERROR)
>>> "DEBUGLEVEL" looks like a copy-paste error.
1109 TRACE("Iterating over JSON, key=%s",
1110 json_object_to_json_string(json_data_artifact_item));
1111 json_object *json_data_artifact_filename =
1112 json_get_path_key(json_data_artifact_item,
1113 (const char *[]){"filename", NULL});
1114 json_object *json_data_artifact_sha1hash =
Best regards,
The Coverity Scan Admin Team