Home
last modified time | relevance | path

Searched refs:MAX_STR_LEN (Results 1 – 24 of 24) sorted by relevance

/kernel/liteos_m/testsuites/unittest/fuzz/src/string/
Dmemcpy_fuzz.c41 #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()
Dmemset_fuzz.c41 #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()
Dstrcspn_fuzz.c41 #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()
Dstrcmp_fuzz.c41 #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()
Dstrstr_fuzz.c41 #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()
Dmemcmp_fuzz.c41 #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()
Dtest_strncmp_fuzz.c41 #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()
Dtest_strlen_fuzz.c41 #define MAX_STR_LEN 256 macro
60 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, ""); in StrlenFuzz()
Dtest_strrchr_fuzz.c41 #define MAX_STR_LEN 256 macro
62 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, ""); in StrrchrFuzz()
Dstrchr_fuzz.c41 #define MAX_STR_LEN 256 macro
62 … str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "abcdefghijklmnopqrstuvwxyz"); in StrchrFuzzTest()
Dstrdup_fuzz.c41 #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/
Dit_test_strings_fuzz.c42 #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()
Dtest_strncasecmp_fuzz.c41 #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/
Datoi_fuzz.c41 #define MAX_STR_LEN 10 macro
59 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "1"); in AtoiFuzzTest()
Datol_fuzz.c41 #define MAX_STR_LEN 10 macro
59 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "1"); in AtolFuzzTest()
Datoll_fuzz.c41 #define MAX_STR_LEN 19 macro
59 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "1"); in AtollFuzzTest()
Dstrtol_fuzz.c41 #define MAX_STR_LEN 10 macro
69 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "1"); in StrtolFuzzTest()
Dstrtoull_fuzz.c41 #define MAX_STR_LEN 20 macro
69 str = (char *)DT_SetGetString(&g_element[0], STR_LEN, MAX_STR_LEN, "1"); in StrtoullFuzzTest()
Dstrtoul_fuzz.c41 #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/
Dperror_fuzz.c41 #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/
Ddirname_fuzz.c43 #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/
Dstrptime_fuzz.c41 #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/
Dhiview_hievent.c15 #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/
Dloopback_test.c26 #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()