Skip to content
Permalink
Browse files

Merge pull request #103 from alex/patch-1

[oss-fuzz] test cbor_copy as well
  • Loading branch information...
PJK committed Jul 2, 2019
2 parents 81de07b + 2004a63 commit 46281ccedd5307f480d62f1e019530a688dc2f4a
Showing with 2 additions and 0 deletions.
  1. +2 −0 oss-fuzz/cbor_load_fuzzer.cc
@@ -29,6 +29,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
size_t buffer_size;
cbor_serialize_alloc(item, &buffer, &buffer_size);
free(buffer);
cbor_item_t *copied = cbor_copy(item);
cbor_decref(&copied);
cbor_decref(&item);
}
return 0;

0 comments on commit 46281cc

Please sign in to comment.
You can’t perform that action at this time.