Skip to content

Commit

Permalink
Comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lemire committed Sep 27, 2023
1 parent c7e309a commit 0ffbde8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/toplevel_unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -4627,8 +4627,9 @@ bool deserialization_test(const char *data, size_t size) {

DEFINE_TEST(robust_deserialization) {
assert_true(deserialization_test(NULL, 0));
const char* test1 = "\x3b\x30\x00\x00\x01\x00\x00\xfa\x2e\x01\x00\x00\x02\xff\xff";
assert_true(deserialization_test(test1, 15));
// contains a run container that overflows the 16-bit boundary.
const char test1[] = "\x3b\x30\x00\x00\x01\x00\x00\xfa\x2e\x01\x00\x00\x02\xff\xff";
assert_true(deserialization_test(test1, sizeof(test1)));
}

int main() {
Expand Down

0 comments on commit 0ffbde8

Please sign in to comment.