Home
last modified time | relevance | path

Searched refs:cbor_copy (Results 1 – 6 of 6) sorted by relevance

/freebsd-14.2/contrib/libcbor/test/
H A Dcopy_test.c16 assert_uint8(copy = cbor_copy(item), 10); in test_uints()
21 assert_uint16(copy = cbor_copy(item), 10); in test_uints()
26 assert_uint32(copy = cbor_copy(item), 10); in test_uints()
31 assert_uint64(copy = cbor_copy(item), 10); in test_uints()
38 assert_true(cbor_get_uint8(copy = cbor_copy(item)) == 10); in test_negints()
43 assert_true(cbor_get_uint16(copy = cbor_copy(item)) == 10); in test_negints()
70 copy = cbor_copy(item); in test_indef_bytestring()
92 copy = cbor_copy(item); in test_indef_string()
160 assert_true(cbor_is_null(copy = cbor_copy(item))); in test_ctrls()
221 WITH_MOCK_MALLOC({ assert_null(cbor_copy(item)); }, 5, in test_bytestring_chunk_append_failure()
[all …]
/freebsd-14.2/contrib/libcbor/src/
H A Dcbor.c154 cbor_item_t *cbor_copy(cbor_item_t *item) { in cbor_copy() function
173 cbor_copy(cbor_bytestring_chunks_handle(item)[i]); in cbor_copy()
199 cbor_copy(cbor_string_chunks_handle(item)[i]); in cbor_copy()
225 cbor_item_t *entry_copy = cbor_copy(cbor_move(cbor_array_get(item, i))); in cbor_copy()
252 cbor_item_t *key_copy = cbor_copy(it[i].key); in cbor_copy()
257 cbor_item_t *value_copy = cbor_copy(it[i].value); in cbor_copy()
276 cbor_item_t *item_copy = cbor_copy(cbor_move(cbor_tag_item(item))); in cbor_copy()
H A Dcbor.h62 _CBOR_NODISCARD CBOR_EXPORT cbor_item_t* cbor_copy(cbor_item_t* item);
/freebsd-14.2/contrib/libcbor/oss-fuzz/
H A Dcbor_load_fuzzer.cc80 cbor_item_t *copied = cbor_copy(item); in LLVMFuzzerTestOneInput()
/freebsd-14.2/contrib/libcbor/doc/source/api/
H A Ditem_reference_counting.rst38 .. doxygenfunction:: cbor_copy
/freebsd-14.2/contrib/libcbor/
H A DCHANGELOG.md43 - BREAKING: [Fix `cbor_copy` leaking memory and creating invalid items when the allocator fails](ht…
44 …- Previously, the failures were not handled in the interface. Now, `cbor_copy` may return `NULL` u…
147 - `cbor_copy`