| /src/external/bsd/libfido2/dist/fuzz/ |
| fuzz_attobj.c | 206 size_t cbor_alloc_len, cbor_len = 0; local 223 if ((cbor_len = cbor_serialize_alloc(array, &cbor, 224 &cbor_alloc_len)) == 0 || cbor_len > len) { 225 cbor_len = 0; 229 memcpy(ptr, cbor, cbor_len); 240 return cbor_len;
|
| fuzz_netlink.c | 63 size_t cbor_alloc_len, cbor_len = 0; local 78 if ((cbor_len = cbor_serialize_alloc(array, &cbor, 79 &cbor_alloc_len)) == 0 || cbor_len > len) { 80 cbor_len = 0; 84 memcpy(ptr, cbor, cbor_len); 95 return cbor_len;
|
| fuzz_hid.c | 91 size_t cbor_alloc_len, cbor_len = 0; local 107 if ((cbor_len = cbor_serialize_alloc(array, &cbor, 108 &cbor_alloc_len)) == 0 || cbor_len > len) { 109 cbor_len = 0; 113 memcpy(ptr, cbor, cbor_len); 124 return cbor_len;
|
| fuzz_largeblob.c | 104 size_t cbor_alloc_len, cbor_len = 0; local 121 if ((cbor_len = cbor_serialize_alloc(array, &cbor, 122 &cbor_alloc_len)) == 0 || cbor_len > len) { 123 cbor_len = 0; 127 memcpy(ptr, cbor, cbor_len); 138 return cbor_len;
|
| fuzz_assert.c | 116 size_t cbor_alloc_len, cbor_len = 0; local 143 if ((cbor_len = cbor_serialize_alloc(array, &cbor, 144 &cbor_alloc_len)) == 0 || cbor_len > len) { 145 cbor_len = 0; 149 memcpy(ptr, cbor, cbor_len); 160 return cbor_len;
|
| fuzz_bio.c | 136 size_t cbor_alloc_len, cbor_len = 0; local 157 if ((cbor_len = cbor_serialize_alloc(array, &cbor, 158 &cbor_alloc_len)) == 0 || cbor_len > len) { 159 cbor_len = 0; 163 memcpy(ptr, cbor, cbor_len); 174 return cbor_len;
|
| fuzz_cred.c | 124 size_t cbor_alloc_len, cbor_len = 0; local 153 if ((cbor_len = cbor_serialize_alloc(array, &cbor, 154 &cbor_alloc_len)) == 0 || cbor_len > len) { 155 cbor_len = 0; 159 memcpy(ptr, cbor, cbor_len); 170 return cbor_len;
|
| fuzz_credman.c | 124 size_t cbor_alloc_len, cbor_len = 0; local 144 if ((cbor_len = cbor_serialize_alloc(array, &cbor, 145 &cbor_alloc_len)) == 0 || cbor_len > len) { 146 cbor_len = 0; 150 memcpy(ptr, cbor, cbor_len); 161 return cbor_len;
|
| fuzz_mgmt.c | 120 size_t cbor_alloc_len, cbor_len = 0; local 141 if ((cbor_len = cbor_serialize_alloc(array, &cbor, 142 &cbor_alloc_len)) == 0 || cbor_len > len) { 143 cbor_len = 0; 147 memcpy(ptr, cbor, cbor_len); 158 return cbor_len;
|
| fuzz_pcsc.c | 78 size_t cbor_alloc_len, cbor_len = 0; local 96 if ((cbor_len = cbor_serialize_alloc(array, &cbor, 97 &cbor_alloc_len)) == 0 || cbor_len > len) { 98 cbor_len = 0; 102 memcpy(ptr, cbor, cbor_len); 113 return cbor_len;
|
| /src/external/bsd/libfido2/dist/src/ |
| config.c | 20 size_t cbor_len = 0; local 27 if ((cbor_len = cbor_serialize(item, cbor, sizeof(cbor))) == 0) { 32 if ((hmac->ptr = malloc(cbor_len + sizeof(prefix))) == NULL) { 37 memcpy(hmac->ptr + sizeof(prefix), cbor, cbor_len); 38 hmac->len = cbor_len + sizeof(prefix);
|
| bio.c | 27 size_t cbor_len; local 38 if ((cbor_len = cbor_serialize_alloc(*param, &cbor, 39 &cbor_alloc_len)) == 0 || cbor_len > SIZE_MAX - sizeof(prefix)) { 44 if ((hmac_data->ptr = malloc(cbor_len + sizeof(prefix))) == NULL) { 50 memcpy(hmac_data->ptr + sizeof(prefix), cbor, cbor_len); 51 hmac_data->len = cbor_len + sizeof(prefix);
|
| cbor.c | 403 size_t cbor_len; local 410 cbor_len = cbor_serialize_alloc(flat, &cbor, &cbor_alloc_len); 411 if (cbor_len == 0 || cbor_len == SIZE_MAX) { 412 fido_log_debug("%s: cbor_len=%zu", __func__, cbor_len); 416 if ((f->ptr = malloc(cbor_len + 1)) == NULL) 419 f->len = cbor_len + 1;
|
| /src/external/bsd/libfido2/dist/regress/ |
| assert.c | 631 size_t cbor_len; local 648 assert((cbor_len = cbor_serialize_alloc(item, &cbor, &alloclen)) == len); 654 assert(len == cbor_len); 656 assert(cbor_len == sizeof(authdata)); 657 assert(memcmp(cbor, authdata, cbor_len) == 0);
|
| cred.c | 2781 size_t cbor_len; local 2797 assert((cbor_len = cbor_serialize_alloc(item, &cbor, &alloclen)) == len); 2803 assert(len == cbor_len); 2805 assert(cbor_len == sizeof(authdata)); 2806 assert(memcmp(cbor, authdata, cbor_len) == 0);
|
| /src/external/bsd/libfido2/dist/tools/ |
| largeblob.c | 538 size_t cbor_len; local 542 &cbor_len)) != FIDO_OK) { 547 if ((item = cbor_load(cbor_ptr, cbor_len, &cbor_result)) == NULL) { 551 if (cbor_result.read != cbor_len) { 552 warnx("%s: cbor_result.read (%zu) != cbor_len (%zu)", __func__, 553 cbor_result.read, cbor_len); 570 printf("total map size: %zu byte%s\n", cbor_len, plural(cbor_len));
|