Enabled style and CERT-C addon for CPPCHECK (#869)

* Enabled style and CERT-C addon for CPPCHECK with some suppressions and fixed the defects found..
This commit is contained in:
Steve Karg
2024-12-10 07:56:24 -06:00
committed by GitHub
parent f38b75b389
commit d4cbec91e2
21 changed files with 79 additions and 73 deletions
+2 -2
View File
@@ -726,7 +726,7 @@ int bacapp_decode_obj_property_ref(
&object_identifier.instance);
if (len > 0) {
apdu_len += len;
} else if (len <= 0) {
} else {
return BACNET_STATUS_ERROR;
}
/* property-identifier [1] BACnetPropertyIdentifier */
@@ -734,7 +734,7 @@ int bacapp_decode_obj_property_ref(
&apdu[apdu_len], apdu_size - apdu_len, 1, &property_identifier);
if (len > 0) {
apdu_len += len;
} else if (len <= 0) {
} else {
return BACNET_STATUS_ERROR;
}
if (reference) {