/kernel/liteos_m/testsuites/unittest/fuzz/src/string/ |
D | memcpy_fuzz.c | 41 #define MAX_STR_LEN 256 macro 48 char dest[MAX_STR_LEN + 1] = { 0 }; in MemcpyFuzzTest() 56 char *source = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "pin"); in MemcpyFuzzTest() 57 (void)memcpy(dest, source, MAX_STR_LEN); in MemcpyFuzzTest()
|
D | memset_fuzz.c | 41 #define MAX_STR_LEN 256 macro 50 char source[MAX_STR_LEN + 1] = { 0 }; in MemsetFuzzTest() 62 if (c > MAX_STR_LEN || c < 0) { in MemsetFuzzTest() 63 c = MAX_STR_LEN; in MemsetFuzzTest()
|
D | strcspn_fuzz.c | 41 #define MAX_STR_LEN 256 macro 60 source = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "pin"); in StrcspnFuzzTest() 61 dest = (char *)DT_SetGetString(&g_element[1], STR_LEN, MAX_STR_LEN, "pin"); in StrcspnFuzzTest()
|
D | strcmp_fuzz.c | 41 #define MAX_STR_LEN 256 macro 60 source = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "pin"); in StrcmpFuzzTest() 61 dest = (char *)DT_SetGetString(&g_element[1], STR_LEN, MAX_STR_LEN, "pin"); in StrcmpFuzzTest()
|
D | strstr_fuzz.c | 41 #define MAX_STR_LEN 256 macro 60 … str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "abcdefghijklmnopqrstuvwxyz"); in StrstrFuzzTest() 61 substr = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "bcd"); in StrstrFuzzTest()
|
D | memcmp_fuzz.c | 41 #define MAX_STR_LEN 256 macro 60 source = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "pin"); in MemcmpFuzzTest() 61 dest = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "pin"); in MemcmpFuzzTest()
|
D | test_strncmp_fuzz.c | 41 #define MAX_STR_LEN 256 macro 61 stringVal1 = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "string"); in StrncmpFuzz() 62 stringVal2 = (char *)DT_SetGetString(&g_element[1], STR_LEN, MAX_STR_LEN, "STring"); in StrncmpFuzz()
|
D | test_strlen_fuzz.c | 41 #define MAX_STR_LEN 256 macro 60 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, ""); in StrlenFuzz()
|
D | test_strrchr_fuzz.c | 41 #define MAX_STR_LEN 256 macro 62 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, ""); in StrrchrFuzz()
|
D | strchr_fuzz.c | 41 #define MAX_STR_LEN 256 macro 62 … str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "abcdefghijklmnopqrstuvwxyz"); in StrchrFuzzTest()
|
D | strdup_fuzz.c | 41 #define MAX_STR_LEN 256 macro 59 source = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "pin"); in StrdupFuzzTest()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/strings/ |
D | it_test_strings_fuzz.c | 42 #define MAX_STR_LEN 256 macro 61 lstring = DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, ""); in StrcasecmpFuzz() 62 rstring = DT_SetGetString(&g_element[1], STR_LEN, MAX_STR_LEN, ""); in StrcasecmpFuzz()
|
D | test_strncasecmp_fuzz.c | 41 #define MAX_STR_LEN 256 macro 61 stringVal1 = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, ""); in StrncasecmpFuzz() 62 stringVal2 = (char *)DT_SetGetString(&g_element[1], STR_LEN, MAX_STR_LEN, ""); in StrncasecmpFuzz()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/stdlib/ |
D | atoi_fuzz.c | 41 #define MAX_STR_LEN 10 macro 59 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "1"); in AtoiFuzzTest()
|
D | atol_fuzz.c | 41 #define MAX_STR_LEN 10 macro 59 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "1"); in AtolFuzzTest()
|
D | atoll_fuzz.c | 41 #define MAX_STR_LEN 19 macro 59 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "1"); in AtollFuzzTest()
|
D | strtol_fuzz.c | 41 #define MAX_STR_LEN 10 macro 69 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "1"); in StrtolFuzzTest()
|
D | strtoull_fuzz.c | 41 #define MAX_STR_LEN 20 macro 69 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "1"); in StrtoullFuzzTest()
|
D | strtoul_fuzz.c | 41 #define MAX_STR_LEN 10 macro 69 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "1"); in StrtoulFuzzTest()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/stdio/ |
D | perror_fuzz.c | 41 #define MAX_STR_LEN 1024 macro 59 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "syserror"); in PerrorFuzzTest()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/libgen/ |
D | dirname_fuzz.c | 43 #define MAX_STR_LEN 10 macro 61 dirName = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "test"); in DirnameFuzzTest()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/time/ |
D | strptime_fuzz.c | 41 #define MAX_STR_LEN 256 macro 59 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "20210304133500"); in StrptimeFuzzTest()
|
/kernel/linux/linux-5.10/drivers/staging/hievent/ |
D | hiview_hievent.c | 15 #define MAX_STR_LEN (10 * 1024) macro 180 if (len > MAX_STR_LEN) in hievent_put_string() 181 len = MAX_STR_LEN; in hievent_put_string()
|
/kernel/linux/linux-5.10/drivers/staging/greybus/tools/ |
D | loopback_test.c | 26 #define MAX_STR_LEN 255 macro 71 char name[MAX_STR_LEN]; 96 char test_name[MAX_STR_LEN]; 617 snprintf(d->name, MAX_STR_LEN, "gb_loopback%u", dev_id); in find_loopback_devices() 641 char buf[MAX_SYSFS_PATH + MAX_STR_LEN]; in open_poll_files() 903 snprintf(t.test_name, MAX_STR_LEN, "%s", optarg); in main()
|