Skip to content

Commit

Permalink
[oss-fuzz] test cbor_copy as well
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jun 29, 2019
1 parent 81de07b commit 2004a63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oss-fuzz/cbor_load_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2004a63

Please sign in to comment.