Added check for zero length buffer size in primitive decoders that returns zero to enable simpler complex value optional element decoding. (#876)

This commit is contained in:
Steve Karg
2024-12-18 15:29:27 -06:00
committed by GitHub
parent 389b6a7d4d
commit 6b6be4a434
11 changed files with 723 additions and 270 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ static void testTimestampTimeDate(void)
len--;
test_len = bacnet_timestamp_context_decode(
buffer, len, tag_number, &testTimestampOut);
zassert_equal(test_len, BACNET_STATUS_ERROR, NULL);
zassert_true(test_len <= 0, "len=%d test_len=%d", len, test_len);
}
/* test for valid values */
zassert_equal(testTimestampIn.tag, testTimestampOut.tag, NULL);