Skip to content
Permalink
Browse files

[oss-fuzz] test cbor_copy as well

  • Loading branch information...
alex committed Jun 29, 2019
1 parent 81de07b commit 2004a630ede817a9f69c0c681aa1f20d24c80e61
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 2004a63

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