We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coverity issues reported by https://scan.coverity.com/projects/iotivity-iotivity-lite?tab=overview (or by other developers running custom coverity scans):
Impact: High
Version: b2b66ef
Version: 9415446
Impact: Medium
Impact: Low
133 bool 134 oc_sec_certs_ecp_group_id_is_allowed(mbedtls_ecp_group_id gid) 135 { 1. Condition gid != MBEDTLS_ECP_DP_NONE, taking false branch. 2. overflow: Subtract operation overflows on operands gid and 1U. CID 55610 (#5 of 5): Overflowed return value (INTEGER_OVERFLOW) 3. overflow_sink: Overflowed or truncated value (or a value computed from an overflowed or truncated value) gid != MBEDTLS_ECP_DP_NONE && ((1 << gid - 1U) & g_allowed_ecp_grpids_mask) != 0U used as return value. 136 return gid != MBEDTLS_ECP_DP_NONE && 137 (MBEDTLS_X509_ID_FLAG(gid) & g_allowed_ecp_grpids_mask) != 0; 138 }
260 int 261 oc_sec_sdi_encode(size_t device, oc_interface_mask_t iface_mask) 262 { 263 const oc_sec_sdi_t *sdi = oc_sec_sdi_get(device); 1. assign_zero: Assigning: sdi_res = NULL. 264 const oc_resource_t *sdi_res = NULL; 2. Condition (iface_mask & OC_IF_BASELINE) != 0, taking false branch. 265 if ((iface_mask & OC_IF_BASELINE) != 0) { 266 sdi_res = oc_core_get_resource_by_index(OCF_SEC_SDI, device); 267 } CID 57077 (#1 of 1): Explicit null dereferenced (FORWARD_NULL) 3. var_deref_model: Passing null pointer sdi_res to oc_sec_sdi_encode_with_resource, which dereferences it. 268 return oc_sec_sdi_encode_with_resource(sdi, sdi_res, iface_mask); 269 }
279 // tag-pos-rel 280 const double *pos = resource->tag_pos_rel; CID 57076 (#1-3 of 3): Bad comparison of floating-point expressions (FLOATING_POINT_EQUALITY) 1. floating_point_equality: Floating point expression pos[0] is compared using operator !=. 281 if (pos[0] != 0 || pos[1] != 0 || pos[2] != 0) { 282 oc_rep_set_key(oc_rep_object(link), "tag-pos-rel"); 283 oc_rep_start_array(oc_rep_object(link), tag_pos_rel); 284 oc_rep_add_double(tag_pos_rel, pos[0]); 285 oc_rep_add_double(tag_pos_rel, pos[1]); 286 oc_rep_add_double(tag_pos_rel, pos[2]); 287 oc_rep_end_array(oc_rep_object(link), tag_pos_rel); 288 }
The text was updated successfully, but these errors were encountered:
Danielius1922
Successfully merging a pull request may close this issue.
Coverity issues reported by https://scan.coverity.com/projects/iotivity-iotivity-lite?tab=overview (or by other developers running custom coverity scans):
Internal nightly scan
Impact: High
Version: b2b66ef
Version: 9415446
Impact: Medium
Impact: Low
Reported by other teams
Impact: High
Trace
Trace
Trace
Trace
Trace
Impact: Medium
Trace
Trace
Trace
Trace
Trace
Trace
Trace
Trace
Trace
Trace
Trace
Trace
Trace
Trace
The text was updated successfully, but these errors were encountered: