| /zcbor-latest/tests/fuzz/ |
| D | main_entry.c | 9 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { in LLVMFuzzerTestOneInput() argument 10 (void) fuzz_one_input(data, size); in LLVMFuzzerTestOneInput() 23 ssize_t size = read(0, tmp_buffer, AFL_MAX_SIZE); in afl_read() local 24 if (size <= 0) { in afl_read() 27 *data = (uint8_t *) malloc(size); in afl_read() 31 memcpy(*data, tmp_buffer, size); in afl_read() 32 return size; in afl_read() 37 size = afl_read(&data); \ 38 if (NULL == data || 0 == size) { \ 41 ret = fuzz_one_input(data, size); \ [all …]
|
| D | fuzz_pet.c | 4 bool fuzz_one_input(const uint8_t *data, size_t size) in fuzz_one_input() argument 8 bool ret = cbor_decode_Pet(data, size, in fuzz_one_input()
|
| D | fuzz_everything.c | 4 bool fuzz_one_input(const uint8_t *data, size_t size) in fuzz_one_input() argument 8 bool ret = cbor_decode_EverythingUnion(data, size, in fuzz_one_input()
|
| D | main_entry.h | 5 bool fuzz_one_input(const uint8_t *data, size_t size);
|
| D | fuzz_manifest12.c | 4 bool fuzz_one_input(const uint8_t *data, size_t size) in fuzz_one_input() argument 11 bool ret = cbor_decode_SUIT_Envelope_Tagged(data, size, in fuzz_one_input()
|
| /zcbor-latest/src/ |
| D | zcbor_print.c | 17 void zcbor_print_compare_lines(const uint8_t *str1, const uint8_t *str2, size_t size) in zcbor_print_compare_lines() argument 19 for (size_t j = 0; j < size; j++) { in zcbor_print_compare_lines() 23 for (size_t j = 0; j < size; j++) { in zcbor_print_compare_lines() 27 for (size_t j = 0; j < size; j++) { in zcbor_print_compare_lines() 35 void zcbor_print_compare_strings(const uint8_t *str1, const uint8_t *str2, size_t size) in zcbor_print_compare_strings() argument 39 for (size_t i = 0; i <= size / col_width; i++) { in zcbor_print_compare_strings() 42 MIN(col_width, (size - i*col_width))); in zcbor_print_compare_strings() 48 void zcbor_print_compare_strings_diff(const uint8_t *str1, const uint8_t *str2, size_t size) in zcbor_print_compare_strings_diff() argument 53 for (size_t i = 0; i <= size / col_width; i++) { in zcbor_print_compare_strings_diff() 54 if (memcmp(&str1[i*col_width], &str2[i*col_width], MIN(col_width, (size - i*col_width))) != 0) { in zcbor_print_compare_strings_diff() [all …]
|
| /zcbor-latest/tests/cases/ |
| D | corner_cases.cddl | 11 twobytes: uint .size 2, 12 onetofourbytes: uint .size 0b1..0o4, ; Testing binary and octal 23 threebytes: uint .size 4, 24 int32: int .size 4, 25 big_int: int .size 8, 27 big_uint2: uint .size 8, 35 ; Using .size and .cbor together with maps. 37 "byte" => uint .size 1, 38 ? "opt_short" => uint .size 2, 39 ? "opt_cbor" => bstr .size 5 .cbor (uint .size 4), [all …]
|
| D | everything.cddl | 10 bstr_size: bstr .size 3 / 14 tstr_size: tstr .size 5 /
|
| D | yaml_compatibility.cddl | 7 "bstr_hex" => bstr .size 8,
|
| D | pet.cddl | 7 Timestamp = bstr .size 8
|
| D | manifest9_simple.cddl | 111 SUIT_Parameter //= (suit-parameter-image-size => uint) 122 RFC4122_UUID = bstr .size 16 163 suit-parameter-image-size = 14
|
| D | manifest-moran3.cddl | 73 empty_or_serialized_map = (bstr .cbor header_map) / (bstr .size 0) 179 Uuid = bstr .size 16
|
| D | manifest20.cddl | 152 $$SUIT_Parameters //= (suit-parameter-image-size => uint) 167 RFC4122_UUID = bstr .size 16 252 suit-parameter-image-size = 14
|
| D | manifest-moran4.cddl | 125 ? suit-component-size => uint, 130 suit-component-size = 2 157 RFC4122_UUID = bstr .size 16
|
| D | manifest16.cddl | 162 SUIT_Parameters //= (suit-parameter-image-size => uint) 176 RFC4122_UUID = bstr .size 16 256 suit-parameter-image-size = 14
|
| D | cose.cddl | 16 empty_or_serialized_map = bstr .cbor header_map / bstr .size 0
|
| D | manifest14.cddl | 209 SUIT_Parameters //= (suit-parameter-image-size => uint) 240 RFC4122_UUID = bstr .size 16 405 suit-parameter-image-size = 14
|
| D | manifest2.cddl | 128 RFC4122_UUID = bstr .size 16 201 SUIT_Parameters //= (suit-parameter-image-size => uint) 324 suit-parameter-image-size = 12
|
| D | manifest3.cddl | 135 RFC4122_UUID = bstr .size 16 224 SUIT_Parameters //= (suit-parameter-image-size => uint) 347 suit-parameter-image-size = 12
|
| D | manifest12.cddl | 235 SUIT_Parameters //= (suit-parameter-image-size => uint) 266 RFC4122_UUID = bstr .size 16 432 suit-parameter-image-size = 14
|
| /zcbor-latest/include/ |
| D | zcbor_print.h | 74 void zcbor_print_compare_lines(const uint8_t *str1, const uint8_t *str2, size_t size); 76 void zcbor_print_compare_strings(const uint8_t *str1, const uint8_t *str2, size_t size); 78 void zcbor_print_compare_strings_diff(const uint8_t *str1, const uint8_t *str2, size_t size);
|
| /zcbor-latest/tests/decode/test8_suit12/src/ |
| D | main.c | 738 bool fuzz_one_input(const uint8_t *data, size_t size);
|
| /zcbor-latest/tests/decode/test3_simple/src/ |
| D | main.c | 453 bool fuzz_one_input(const uint8_t *data, size_t size);
|
| /zcbor-latest/ |
| D | RELEASE_NOTES.md | 48 * Fix bstr names based on size 282 …w functions zcbor_int_encode() and zcbor_int_decode() which accept the integer size as an argument. 283 …decode() when operating directly on _choice enums, since enums can be any size, depending on compi… 330 * zcbor.py: Fix missing size check for repeated bstrs with their own type 376 …* New argument: `--default-bit-size` which controls the assumed size of integers. See zcbor code `… 391 … transitioned to `size_t` or `uint_fast32_t` which are typically the same size as the architecture… 439 …* zcbor.py: Fix some code generation bugs to do with range checking (min/max size) of ints and CBO… 468 …* Add more support for hexadecimal/octal/binary numbers in CDDL. E.g. in size ranges or value limi…
|
| D | MIGRATION_GUIDE.md | 14 …* A fix was made to the naming of bstr elements with a .size specifier, which might mean that thes…
|